diff options
author | Marius Halden <marius.h@lden.org> | 2016-11-14 08:19:00 +0100 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2016-11-14 08:19:00 +0100 |
commit | af800c35a3927638914bd9c2aed60ad04694b34e (patch) | |
tree | 8e25fba5a40871eb11bbda2d70cb48839ace0d9b /protocols/nogaim.h | |
parent | 6967042e3559d1dc40532660a690deab159146c9 (diff) | |
parent | 9f03c472fef309878ff2f3bc720d51e6d03077f1 (diff) |
Merge branch 'master' into patched-master
Diffstat (limited to 'protocols/nogaim.h')
-rw-r--r-- | protocols/nogaim.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/protocols/nogaim.h b/protocols/nogaim.h index 4cba2174..b5a46524 100644 --- a/protocols/nogaim.h +++ b/protocols/nogaim.h @@ -139,6 +139,27 @@ struct buddy_action { char *description; }; +/* This enum takes a few things from libpurple and a few things from old OPT_ flags. + * The only flag that was used before this struct was PRPL_OPT_NOOTR. + * + * The libpurple ones only use the same values as the PurpleProtocolOptions + * enum for convenience, but there's no promise of direct compatibility with + * those values. As of libpurple 2.8.0 they use up to 0x800 (1 << 11), which is + * a nice coincidence. + */ +typedef enum { + /* The protocol doesn't use passwords + * Mirrors libpurple's OPT_PROTO_NO_PASSWORD */ + PRPL_OPT_NO_PASSWORD = 1 << 4, + + /* The protocol doesn't require passwords, but may use them + * Mirrors libpurple's OPT_PROTO_PASSWORD_OPTIONAL */ + PRPL_OPT_PASSWORD_OPTIONAL = 1 << 7, + + /* The protocol is not suitable for OTR, see OPT_NOOTR */ + PRPL_OPT_NOOTR = 1 << 12, +} prpl_options_t; + struct prpl { int options; /* You should set this to the name of your protocol. |