]> jfr.im git - solanum.git/blobdiff - include/client.h
Add new constants for presence key/value lengths
[solanum.git] / include / client.h
index 3e3fd3607853076294cd70f3304dc18450854553..26809f3d8dcf7e38a1321286ec4b1a7fa1d0ab89 100644 (file)
@@ -92,7 +92,6 @@ struct User
 {
        rb_dlink_list channel;  /* chain of channel pointer blocks */
        rb_dlink_list invited;  /* chain of invite pointer blocks */
-       char *away;             /* pointer to away message */
        int refcnt;             /* Number of times this block is referenced */
 
        char suser[NICKLEN+1];
@@ -122,8 +121,8 @@ struct ZipStats
 
 struct MetadataEntry
 {
-       char key[NICKLEN+1];
-       char value[TOPICLEN];
+       char key[METADATAKEYLEN];
+       char value[METADATAVALUELEN];
 };
 
 struct Client
@@ -457,6 +456,7 @@ struct ListClient
 
 #define CLICAP_MULTI_PREFIX    0x0001
 #define CLICAP_SASL            0x0002
+#define CLICAP_PRESENCE                0x0004
 
 /*
  * flags macros.
@@ -614,4 +614,8 @@ extern char *generate_uid(void);
 void allocate_away(struct Client *);
 void free_away(struct Client *);
 
+const char *get_metadata(struct Client *, const char *);
+void set_metadata(struct Client *, const char *, const char *);
+void delete_metadata(struct Client *, const char *);
+
 #endif /* INCLUDED_client_h */