*
*/
-
+#define _GNU_SOURCE
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#include <utilX.h>
#include <glib.h>
#include <poll.h>
#include <bundle.h>
SLPAPI int aul_key_init(int (*aul_handler) (bundle *, void *), void *data)
{
+#ifdef _APPFW_FEATURE_AMD_KEY
int fd;
GPollFD *gpollfd;
GSource *src;
gpollfd = (GPollFD *) g_malloc(sizeof(GPollFD));
if (gpollfd == NULL) {
- _E("out of memory");
g_source_unref(src);
- close(fd);
return AUL_R_ERROR;
}
return AUL_R_ERROR;
g_source_unref(src);
-
+#endif
return AUL_R_OK;
}
SLPAPI int aul_key_reserve()
{
+#ifdef _APPFW_FEATURE_AMD_KE
bundle *kb;
int ret;
bundle_free(kb);
return ret;
+#else
+ return AUL_R_OK;
+#endif
}
SLPAPI int aul_key_release()
{
+#ifdef _APPFW_FEATURE_AMD_KE
bundle *kb;
int ret;
bundle_free(kb);
return ret;
+#else
+ return AUL_R_OK;
+#endif
}
-
-
-