Added jid->hash lookup for capabilities

This commit is contained in:
James Booth
2014-09-20 23:50:19 +01:00
parent 6e19476f6f
commit 2fb9989123
11 changed files with 172 additions and 153 deletions

View File

@@ -42,11 +42,10 @@ typedef struct resource_t {
resource_presence_t presence;
char *status;
int priority;
char *caps_str;
} Resource;
Resource * resource_new(const char * const name, resource_presence_t presence,
const char * const status, const int priority, const char * const caps_str);
const char * const status, const int priority);
void resource_destroy(Resource *resource);
int resource_compare_availability(Resource *first, Resource *second);