Added resource_presence_t and contact_presence_t

This commit is contained in:
James Booth
2013-02-10 17:13:19 +00:00
parent 59e9b10d19
commit e922568770
17 changed files with 162 additions and 182 deletions

View File

@@ -664,19 +664,19 @@ stanza_attach_caps(xmpp_ctx_t * const ctx, xmpp_stanza_t * const presence)
}
const char *
stanza_get_presence_string_from_type(presence_t presence_type)
stanza_get_presence_string_from_type(resource_presence_t presence_type)
{
switch(presence_type)
{
case PRESENCE_AWAY:
case RESOURCE_AWAY:
return STANZA_TEXT_AWAY;
case PRESENCE_DND:
case RESOURCE_DND:
return STANZA_TEXT_DND;
case PRESENCE_CHAT:
case RESOURCE_CHAT:
return STANZA_TEXT_CHAT;
case PRESENCE_XA:
case RESOURCE_XA:
return STANZA_TEXT_XA;
default: // PRESENCE_ONLINE
default:
return NULL;
}
}