Changeset 29ff5c2 for irc.h


Ignore:
Timestamp:
2015-11-21T00:01:50Z (5 years ago)
Author:
dequis <dx@…>
Parents:
e4f08bf (diff), 8fdeaa5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into feat/hip-cat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.h

    re4f08bf r29ff5c2  
    4949        USTATUS_SHUTDOWN = 8,   /* Now used to indicate we're shutting down.
    5050                                   Currently just blocks irc_vawrite(). */
     51        USTATUS_CAP_PENDING = 16,
     52        USTATUS_SASL_PLAIN_PENDING = 32,
    5153
    5254        /* Not really status stuff, but other kinds of flags: For slightly
     
    6567} irc_status_t;
    6668
     69typedef enum {
     70        CAP_SASL = (1 << 0),
     71        CAP_MULTI_PREFIX = (1 << 1),
     72        CAP_EXTENDED_JOIN = (1 << 2),
     73        CAP_AWAY_NOTIFY = (1 << 3),
     74} irc_cap_flag_t;
     75
    6776struct irc_user;
    6877
     
    102111
    103112        struct bee *b;
     113        guint32 caps;
    104114} irc_t;
    105115
     
    305315gboolean irc_channel_name_hint(irc_channel_t *ic, const char *name);
    306316void irc_channel_update_ops(irc_channel_t *ic, char *value);
     317char irc_channel_user_get_prefix(irc_channel_user_t *icu);
    307318char *set_eval_irc_channel_ops(struct set *set, char *value);
    308319gboolean irc_channel_wants_user(irc_channel_t *ic, irc_user_t *iu);
     
    334345                                     irc_channel_user_flags_t old_flags, irc_channel_user_flags_t new_flags);
    335346void irc_send_invite(irc_user_t *iu, irc_channel_t *ic);
     347void irc_send_cap(irc_t *irc, char *subcommand, char *body);
     348void irc_send_away_notify(irc_user_t *iu);
    336349
    337350/* irc_user.c */
     
    347360char *set_eval_timezone(struct set *set, char *value);
    348361char *irc_format_timestamp(irc_t *irc, time_t msg_ts);
     362char *set_eval_self_messages(struct set *set, char *value);
    349363
    350364/* irc_im.c */
     
    352366void bee_irc_user_nick_reset(irc_user_t *iu);
    353367
     368/* irc_cap.c */
     369void irc_cmd_cap(irc_t *irc, char **cmd);
     370
    354371#endif
Note: See TracChangeset for help on using the changeset viewer.