#include "vconf-buxton.h"
#include "log.h"
-#define VCONF_OK 0
-#define VCONF_ERROR -1
-
/*================= SECTION definition of types =============*/
/*
static GSource *glib_source = NULL;
#endif
+/*
+ * error code for vconf_get_ext_errno()
+ */
+static int g_vconf_errno = 0;
+
#if !defined(NO_MULTITHREADING)
/*
* multithreaded protection
list = keynode->list;
list->cb_received++;
- if (buxton_response_status (resp) != 0)
+ if ((g_vconf_errno = buxton_response_status (resp)) != 0)
{
ERR ("Buxton returned error %d for key %s",
buxton_response_status (resp), keynode->keyname);
list = keynode->list;
list->cb_received++;
- if (buxton_response_status (resp) != 0)
+ if ((g_vconf_errno = buxton_response_status (resp)) != 0)
{
ERR ("Error %d while getting buxton key %s",
buxton_response_status (resp), keynode->keyname);
/*
* check the response status
*/
- if (buxton_response_status (resp) != 0)
+ if ((g_vconf_errno = buxton_response_status (resp)) != 0)
{
ERR ("Error while getting list of names from buxton");
data->cb_status = VCONF_ERROR;
return single.node.value.s;
}
+
+int
+vconf_get_ext_errno (void)
+{
+ INFO("vconf errno: %d", g_vconf_errno);
+ return g_vconf_errno;
+}