diff options
author | James Booth <boothj5@gmail.com> | 2012-11-27 22:26:42 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-11-27 22:26:42 +0000 |
commit | 2f2fa8de66e16def92a10c5433459e1795fd5441 (patch) | |
tree | 9959565f271d8067936daaa524f396250871f08e /src/contact.c | |
parent | 4b460100ad73c24233ffad79d52b8ee6d1c172bb (diff) | |
download | profani-tty-2f2fa8de66e16def92a10c5433459e1795fd5441.tar.gz |
Show "request pending" in /sub show, when request has been sent
Diffstat (limited to 'src/contact.c')
-rw-r--r-- | src/contact.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/contact.c b/src/contact.c index 9188b5f0..9cbe5d69 100644 --- a/src/contact.c +++ b/src/contact.c @@ -33,12 +33,13 @@ struct p_contact_t { char *presence; char *status; char *subscription; + gboolean pending_out; }; PContact p_contact_new(const char * const jid, const char * const name, const char * const presence, const char * const status, - const char * const subscription) + const char * const subscription, gboolean pending_out) { PContact contact = malloc(sizeof(struct p_contact_t)); contact->jid = strdup(jid); @@ -64,6 +65,8 @@ p_contact_new(const char * const jid, const char * const name, else contact->subscription = strdup("none");; + contact->pending_out = pending_out; + return contact; } @@ -156,6 +159,12 @@ p_contact_subscription(const PContact contact) return contact->subscription; } +gboolean +p_contact_pending_out(const PContact contact) +{ + return contact->pending_out; +} + void p_contact_set_presence(const PContact contact, const char * const presence) { |