Add cosmo_get_profile(), test_subscribe_acl

This commit is contained in:
Ian Gulliver
2015-07-05 02:59:07 +00:00
parent afc201f69c
commit 9e8891884b
4 changed files with 90 additions and 3 deletions

View File

@@ -10,6 +10,11 @@ struct cosmo_command {
promise *promise;
};
struct cosmo_get_profile {
struct cosmo_get_profile *next;
promise *promise;
};
struct cosmo {
char client_id[COSMO_UUID_SIZE];
char instance_id[COSMO_UUID_SIZE];
@@ -21,6 +26,7 @@ struct cosmo {
pthread_cond_t cond;
bool shutdown;
json_t *profile;
struct cosmo_get_profile *get_profile_head;
json_t *generation;
struct cosmo_command *command_queue_head;
struct cosmo_command *command_queue_tail;