Add cosmo_current_profile()

This commit is contained in:
Ian Gulliver
2015-06-06 15:32:13 -07:00
parent 897e13010d
commit b257b23e8a
3 changed files with 22 additions and 2 deletions

View File

@@ -18,6 +18,8 @@ typedef struct {
json_t *command_queue;
uint64_t next_delay_ms;
char *profile;
pthread_t thread;
CURL *curl;
} cosmo;
@@ -27,6 +29,8 @@ void cosmo_uuid(char *uuid);
cosmo *cosmo_create(const char *base_url, const char *client_id);
void cosmo_shutdown(cosmo *instance);
const char *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, const json_t *subject, const json_int_t messages, const json_int_t last_id);
void cosmo_send_message(cosmo *instance, const json_t *subject, json_t *message);