X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/1332a0ef97f5b6b224873ab77ec2cebb524db494..07b7b659c16665ce33b058d1a06a7a420850ceb9:/include/client.h diff --git a/include/client.h b/include/client.h index 38a0ca9..576f7b3 100644 --- a/include/client.h +++ b/include/client.h @@ -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 */