]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - include/client.h
6.0 is officially feature complete.
[irc/rqf/shadowircd.git] / include / client.h
index 38a0ca9c03db91fdf3857597acf43cc25b2675f2..576f7b3863070eed0ddd13d1a00fddffa86692c3 100644 (file)
@@ -84,6 +84,8 @@ struct User
        char *away;             /* pointer to away message */
        int refcnt;             /* Number of times this block is referenced */
 
+       struct Dictionary *metadata;
+
        char suser[NICKLEN+1];
 };
 
@@ -311,6 +313,12 @@ struct ListClient
         */
 };
 
+struct Metadata
+{
+       const char *name;
+       const char *value;
+};
+
 /*
  * status macros.
  */
@@ -613,4 +621,9 @@ extern char *generate_uid(void);
 void allocate_away(struct Client *);
 void free_away(struct Client *);
 
+extern struct Metadata *user_metadata_add(struct Client *target, const char *name, const char *value, int propegate);
+extern void user_metadata_delete(struct Client *target, const char *name, int propegate);
+extern struct Metadata *user_metadata_find(struct Client *target, const char *name);
+extern void user_metadata_clear(struct Client *target);
+
 #endif /* INCLUDED_client_h */