Initial commit.
[multipass-eu.git] / src / message_handler.sma
1 /* $Id: message_handler.sma 1 2005-04-19 09:41:42Z tilman $ */
2
3 #define MSG_ID_SET_SONGNAME 0
4
5 public message (Msg_Type:type, id, ...)
6 {
7         switch (id) {
8                 case MSG_ID_SET_SONGNAME: {
9                         new buf[256], len;
10
11                         if (type != MSG_STRING)
12                                 return;
13
14                         len = snprintf (buf, 256, "%s", getarg (2));
15                         set_songname (buf, len);
16                 }
17         }
18 }