mcabber/src/hooks.h
author Mikael Berthe <mikael@lilotux.net>
Sun, 30 Oct 2005 12:09:32 +0200
changeset 502 3134b4960cdb
parent 484 00e2d3821a5b
child 576 8b3db0b555a1
permissions -rw-r--r--
Fix mixed declaration and code
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
113
8ac67e951eab [/trunk] Changeset 127 by mikael
mikael
parents:
diff changeset
     1
#ifndef __HOOKS_H__
8ac67e951eab [/trunk] Changeset 127 by mikael
mikael
parents:
diff changeset
     2
#define __HOOKS_H__ 1
8ac67e951eab [/trunk] Changeset 127 by mikael
mikael
parents:
diff changeset
     3
8ac67e951eab [/trunk] Changeset 127 by mikael
mikael
parents:
diff changeset
     4
#include <time.h>
8ac67e951eab [/trunk] Changeset 127 by mikael
mikael
parents:
diff changeset
     5
#include "jabglue.h"
8ac67e951eab [/trunk] Changeset 127 by mikael
mikael
parents:
diff changeset
     6
8ac67e951eab [/trunk] Changeset 127 by mikael
mikael
parents:
diff changeset
     7
447
03bb57383cea Initial Multi-User Chat support
Mikael Berthe <mikael@lilotux.net>
parents: 438
diff changeset
     8
inline void hk_message_in(const char *jid, const char *resname,
03bb57383cea Initial Multi-User Chat support
Mikael Berthe <mikael@lilotux.net>
parents: 438
diff changeset
     9
                          time_t timestamp, const char *msg, const char *type);
484
00e2d3821a5b Display PRIV for private messages in a room when using /say_to
Mikael Berthe <mikael@lilotux.net>
parents: 447
diff changeset
    10
inline void hk_message_out(const char *jid, const char *nickname,
00e2d3821a5b Display PRIV for private messages in a room when using /say_to
Mikael Berthe <mikael@lilotux.net>
parents: 447
diff changeset
    11
                           time_t timestamp, const char *msg);
438
b44be19d6229 Handle multiple resources for the same buddy
Mikael Berthe <mikael@lilotux.net>
parents: 393
diff changeset
    12
inline void hk_statuschange(const char *jid, const char *resname, gchar prio,
b44be19d6229 Handle multiple resources for the same buddy
Mikael Berthe <mikael@lilotux.net>
parents: 393
diff changeset
    13
                            time_t timestamp, enum imstatus status,
b44be19d6229 Handle multiple resources for the same buddy
Mikael Berthe <mikael@lilotux.net>
parents: 393
diff changeset
    14
                            char const *status_msg);
116
1e7e59775f12 [/trunk] Changeset 130 by mikael
mikael
parents: 113
diff changeset
    15
inline void hk_mystatuschange(time_t timestamp,
438
b44be19d6229 Handle multiple resources for the same buddy
Mikael Berthe <mikael@lilotux.net>
parents: 393
diff changeset
    16
                              enum imstatus old_status,
b44be19d6229 Handle multiple resources for the same buddy
Mikael Berthe <mikael@lilotux.net>
parents: 393
diff changeset
    17
                              enum imstatus new_status, const char *msg);
113
8ac67e951eab [/trunk] Changeset 127 by mikael
mikael
parents:
diff changeset
    18
281
f562b9af2de7 Add "const" specifier in prototypes
Mikael Berthe <mikael@lilotux.net>
parents: 221
diff changeset
    19
void hk_ext_cmd_init(const char *command);
160
44c6410b4845 [/trunk] Changeset 172 by mikael
mikael
parents: 116
diff changeset
    20
void hk_ext_cmd(const char *jid, guchar type, guchar info, const char *data);
44c6410b4845 [/trunk] Changeset 172 by mikael
mikael
parents: 116
diff changeset
    21
113
8ac67e951eab [/trunk] Changeset 127 by mikael
mikael
parents:
diff changeset
    22
#endif /* __HOOKS_H__ */