diff options
author | Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com> | 2014-09-15 14:23:29 +0300 |
---|---|---|
committer | Frederic PAUT <fpaut@fpaut-MOBL2> | 2014-11-03 11:53:32 +0100 |
commit | a31a1dc256c41e9e33d4e3fdb02b9cefe80def65 (patch) | |
tree | aeeac628798eec20f9d259da34d63af09387ae10 /lib | |
parent | 60c0028ff0810d8ad148b6ba14886aa9b5ca402b (diff) | |
download | neardal-a31a1dc256c41e9e33d4e3fdb02b9cefe80def65.tar.gz neardal-a31a1dc256c41e9e33d4e3fdb02b9cefe80def65.tar.bz2 neardal-a31a1dc256c41e9e33d4e3fdb02b9cefe80def65.zip |
Make GVariant and record helpers public.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/neardal.h | 15 | ||||
-rw-r--r-- | lib/neardal_record.h | 3 | ||||
-rw-r--r-- | lib/neardal_tools.h | 1 |
3 files changed, 15 insertions, 4 deletions
diff --git a/lib/neardal.h b/lib/neardal.h index 955e319..b2dd243 100644 --- a/lib/neardal.h +++ b/lib/neardal.h @@ -617,6 +617,21 @@ errorCode_t neardal_agent_set_handover_cb(oob_push_agent_cb cb_oob_push_agent **/ errorCode_t neardal_free_array(char ***array); +/** + * Dump GVariant in a human readable format. + */ +void neardal_g_variant_dump(GVariant *data); + +/** + * Convert neardal_record to GVariant. + */ +GVariant *neardal_record_to_g_variant(neardal_record *in); + +/** + * Convert GVariant to neardal_record. + */ +neardal_record *neardal_g_variant_to_record(GVariant *in); + #ifdef __cplusplus } #endif /* __cplusplus */ diff --git a/lib/neardal_record.h b/lib/neardal_record.h index 3ff448c..557c60c 100644 --- a/lib/neardal_record.h +++ b/lib/neardal_record.h @@ -34,9 +34,6 @@ void neardal_rcd_remove(RcdProp *rcdProp); void neardal_record_add(GVariant *record); void neardal_record_remove(GVariant *record); -GVariant *neardal_record_to_g_variant(neardal_record *in); -neardal_record *neardal_g_variant_to_record(GVariant *in); - void neardal_record_free(neardal_record *record); #endif /* NEARDAL_RECORD_H */ diff --git a/lib/neardal_tools.h b/lib/neardal_tools.h index ac66af4..9e167ab 100644 --- a/lib/neardal_tools.h +++ b/lib/neardal_tools.h @@ -73,7 +73,6 @@ errorCode_t neardal_tools_prv_add_dict_entry(GVariantBuilder *builder void neardal_g_strfreev(void **array, void *end); void neardal_g_variant_add_parsed(GVariant **v, const char *format, ...); -void neardal_g_variant_dump(GVariant *data); void *neardal_g_variant_get(GVariant *data, const char *key, const char *fmt); void *neardal_data_search(const char *name); GVariant *neardal_data_insert(const char *name, const char *type, GVariant *in); |