summaryrefslogtreecommitdiffstats
path: root/aclk/aclk_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'aclk/aclk_util.h')
-rw-r--r--aclk/aclk_util.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/aclk/aclk_util.h b/aclk/aclk_util.h
index ed715e046..76dc8cad9 100644
--- a/aclk/aclk_util.h
+++ b/aclk/aclk_util.h
@@ -93,9 +93,13 @@ enum aclk_topics {
ACLK_TOPICID_CTXS_UPDATED = 20
};
+typedef size_t aclk_topic_cache_iter_t;
+#define ACLK_TOPIC_CACHE_ITER_T_INITIALIZER (0)
+
const char *aclk_get_topic(enum aclk_topics topic);
int aclk_generate_topic_cache(struct json_object *json);
void free_topic_cache(void);
+const char *aclk_topic_cache_iterate(aclk_topic_cache_iter_t *iter);
// TODO
// aclk_topics_reload //when claim id changes
@@ -107,6 +111,8 @@ extern volatile int aclk_conversation_log_counter;
unsigned long int aclk_tbeb_delay(int reset, int base, unsigned long int min, unsigned long int max);
#define aclk_tbeb_reset(x) aclk_tbeb_delay(1, 0, 0, 0)
-void aclk_set_proxy(char **ohost, int *port, enum mqtt_wss_proxy_type *type);
+void aclk_set_proxy(char **ohost, int *port, char **uname, char **pwd, enum mqtt_wss_proxy_type *type);
+
+int base64_encode_helper(unsigned char *out, int *outl, const unsigned char *in, int in_len);
#endif /* ACLK_UTIL_H */