IRCBot Plugin API  v5
common_messages.h
Go to the documentation of this file.
1 
2 #ifndef __IRCBOT_COMMON_MESSAGES_H__
3 #define __IRCBOT_COMMON_MESSAGES_H__
4 
20 #define IB_INIT 0x01
21 #define IB_SHUTDOWN 0x02
24 #define IB_SS_DRAGCOMPLETE 0x03
26 #define IB_REHASH 0x04
27 #define IB_LOG 0x05
28 #define IB_GETMEMINFO 0x06
30 #define IB_PROCTEXT 0x07
31 #define IB_ON_SONG_RATING 0x08
32 #define IB_REMOTE 0x09
33 #define IB_REQ_OFF 0x0A
34 #define IB_REQ_ON 0x0B
35 
36 #define IB_ONJOIN 0x10
37 #define IB_ONPART 0x11
38 #define IB_ONQUIT 0x12
39 #define IB_ONTEXT 0x13
41 #define IB_ONNICK 0x14
42 #define IB_ONNOTICE 0x15
44 #define IB_ONTOPIC 0x16
45 #define IB_ONKICK 0x17
46 #define IB_ONMODE 0x18
47 #define IB_ONBAN 0x19
48 #define IB_ONUNBAN 0x1A
49 #define IB_BROADCAST_MSG 0x1B
50 
51 #define IB_GETUSERINFO 0x20
52 #define IB_ADD_USER 0x21
53 // For all the 0x2X messages beyond this point you should always return 0 in case other plugins need the notification as well
55 #define IB_DEL_USER 0x22
56 #define IB_ADD_HOSTMASK 0x23
57 #define IB_DEL_HOSTMASK 0x24
58 #define IB_DEL_HOSTMASKS 0x25
59 #define IB_CHANGE_FLAGS 0x26
60 #define IB_CHANGE_PASS 0x27
61 
62 // _C_ == Command message source control should respond to
63 // _I_ == Information message source control should send out
64 #define SOURCE_C_STOP 0x30
65 #define SOURCE_C_PLAY 0x31
66 #define SOURCE_C_NEXT 0x32
67 #define SOURCE_I_STOPPING 0x33
68 #define SOURCE_I_STOPPED 0x34
69 #define SOURCE_I_PLAYING 0x35
70 #define SOURCE_IS_PLAYING 0x36
71 #define SOURCE_GET_SONGINFO 0x37
72 #define SOURCE_GET_SONGID 0x38
73 #define SOURCE_GET_FILE_PATH 0x39
74 
75 #define TTS_IS_LOADED 0x40
76 #define TTS_GET_INTERFACE 0x41
77 #define CHANADMIN_IS_LOADED 0x42
78 #define CHANADMIN_GET_INTERFACE 0x43
79 #define EMAIL_IS_LOADED 0x44
80 #define EMAIL_GET_INTERFACE 0x45
81 
82 #define SMS_GET_INTERFACE 0x46
83 #define SMS_ON_RECEIVED 0x47
84 
85 #define AUTODJ_IS_LOADED 0x50
86 #define AUTODJ_GET_FILE_PATH 0x51
87 
88 #ifndef SWIG
89 
90 struct USER_PRESENCE;
91 struct REMOTE_HEADER;
92 
94  const char * old_nick;
95  const char * new_nick;
97  const char * channel;
98 };
99 
100 struct IBM_ON_KICK {
102  const char * kickee;
103  const char * reason;
104  const char * kickee_hostmask;
105 };
106 
107 struct IBM_ON_BAN {
109  const char * banmask;
110 };
111 
115 };
116 
117 struct IBM_USERTEXT {
120  const char * text;
121 };
122 
123 struct IBM_USERFULL {
124  char nick[128];
125  char pass[128];
126  char hostmask[128];
128 };
129 
131  char nick[128];
132  char pass[128];
137 };
138 
142 };
143 
146  union {
149  };
150 };
151 
152 struct IBM_MEMINFO {
155 };
156 
157 struct IBM_PROCTEXT {
158  char * buf;
160 };
161 
162 struct IBM_SONGINFO {
164  char fn[MAX_PATH];
165  char artist[256];
166  char album[256];
167  char title[256];
168  char genre[128];
169  int songLen;
171  char requested_by[64];
172 };
173 
174 struct IBM_RATING {
175  const char * song;
178 };
179 
180 struct IBM_REMOTE {
182  unsigned char cliversion;
184  char * data;
185 };
186 
187 struct IBM_REQONOFF {
189 };
190 
191 #endif
192 // ^- SWIG
193 
196 #endif // __IRCBOT_COMMON_MESSAGES_H__
unsigned char cliversion
Definition: common_messages.h:182
signed int int32
Definition: plugins.h:43
const char * old_nick
Definition: common_messages.h:94
int32 numhostmasks
Definition: common_messages.h:135
Definition: common_messages.h:180
Definition: common_messages.h:144
Definition: common_messages.h:107
IBM_USERTEXT_TYPE
Definition: common_messages.h:112
Definition: common_messages.h:130
char pass[128]
Definition: common_messages.h:125
Definition: plugins.h:307
USER_PRESENCE * userpres
Definition: common_messages.h:181
uint32 flags
Definition: common_messages.h:134
IBM_USEREXTENDED ue
Definition: common_messages.h:148
char * data
Definition: common_messages.h:184
int32 netno
Definition: common_messages.h:96
char fn[MAX_PATH]
Definition: common_messages.h:164
const char * banmask
Definition: common_messages.h:109
Definition: common_messages.h:123
USER_PRESENCE * userpres
Definition: common_messages.h:118
const char * kickee_hostmask
Definition: common_messages.h:104
IBM_GETUSERINFO_TYPES
Definition: common_messages.h:139
Definition: common_messages.h:114
char genre[128]
Definition: common_messages.h:168
char album[256]
Definition: common_messages.h:166
const char * reason
Definition: common_messages.h:103
const char * new_nick
Definition: common_messages.h:95
uint32 file_id
Definition: common_messages.h:163
char artist[256]
Definition: common_messages.h:165
Definition: common_messages.h:174
int64 num_pointers
Definition: common_messages.h:153
Definition: common_messages.h:152
IBM_USERTEXT_TYPE type
Definition: common_messages.h:119
char nick[128]
Definition: common_messages.h:124
Definition: common_messages.h:117
const char * song
Definition: common_messages.h:175
const char * kickee
Definition: common_messages.h:102
uint32 votes
Definition: common_messages.h:176
uint32 flags
Definition: common_messages.h:127
IBM_GETUSERINFO_TYPES type
Definition: common_messages.h:145
USER_PRESENCE * kicker
Definition: common_messages.h:101
uint32 AutoDJ_ID
Definition: common_messages.h:177
REMOTE_HEADER * head
Definition: common_messages.h:183
char requested_by[64]
Definition: common_messages.h:171
char * buf
Definition: common_messages.h:158
Definition: common_messages.h:93
int songLen
Definition: common_messages.h:169
IBM_USERFULL ui
Definition: common_messages.h:147
USER_PRESENCE * banner
Definition: common_messages.h:108
Definition: common_messages.h:162
int32 bufSize
Definition: common_messages.h:159
Definition: common_messages.h:100
USER_PRESENCE * userpres
Can be NULL if it isn't a Live DJ.
Definition: common_messages.h:188
const char * text
Definition: common_messages.h:120
char title[256]
Definition: common_messages.h:167
Definition: common_messages.h:113
char hostmasks[MAX_HOSTMASKS][128]
Definition: common_messages.h:136
const char * channel
Definition: common_messages.h:97
Definition: common_messages.h:141
signed long long int64
Definition: plugins.h:41
char pass[128]
Definition: common_messages.h:132
uint32 rating
Definition: common_messages.h:176
Definition: common_messages.h:157
unsigned int uint32
Definition: plugins.h:44
int32 ulevel_old_for_v4_binary_compat
Definition: common_messages.h:133
Definition: plugins.h:196
char nick[128]
Definition: common_messages.h:131
bool is_request
Definition: common_messages.h:170
int64 bytes_allocated
Definition: common_messages.h:154
Definition: common_messages.h:140
#define MAX_HOSTMASKS
Definition: plugins.h:86
char hostmask[128]
Definition: common_messages.h:126
Definition: common_messages.h:187