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

@@ -31,7 +31,8 @@ void cosmo_uuid(char *uuid);
cosmo *cosmo_create(const char *base_url, const char *client_id, const cosmo_callbacks *callbacks, const cosmo_options *options, void *passthrough);
void cosmo_shutdown(cosmo *instance);
const char *cosmo_current_profile(cosmo *instance);
void cosmo_get_profile(cosmo *instance, promise *promise_obj);
json_t *cosmo_current_profile(cosmo *instance);
json_t *cosmo_subject(const char *name, const char *readable_only_by, const char *writeable_only_by);
void cosmo_subscribe(cosmo *instance, json_t *subjects, const json_int_t messages, const json_int_t last_id, promise *promise_obj);