record->type = (const char *) rcdProp->type;
record->representation = (const char *) rcdProp->representation;
record->uri = (const char *) rcdProp->uri;
- record->uriObjSize = (uint) rcdProp->uriObjSize;
+ record->uriObjSize = (unsigned int) rcdProp->uriObjSize;
record->mime = (const char *) rcdProp->mime;
exit:
void *user_data)
{
AdpProp *adpProp = NULL;
- errorCode_t errCode = NEARDAL_ERROR_NO_TARGET;
+ errorCode_t errCode = NEARDAL_ERROR_NO_TAG;
char *tagName = NULL;
void *clientValue = NULL;
TagProp *tagProp = NULL;
errCode = neardal_mgr_prv_get_tag(adpProp,
tagName,
&tagProp);
- if (errCode == NEARDAL_ERROR_NO_TARGET) {
+ if (errCode == NEARDAL_ERROR_NO_TAG) {
neardal_adp_prv_cb_tag_found(NULL,
tagName,
adpProp);
errorCode_t neardal_adp_prv_get_tag(AdpProp *adpProp, gchar *tagName,
TagProp **tagProp)
{
- errorCode_t errCode = NEARDAL_ERROR_NO_TARGET;
+ errorCode_t errCode = NEARDAL_ERROR_NO_TAG;
guint len = 0;
TagProp *tag;
case NEARDAL_ERROR_NO_ADAPTER:
return "No NFC adapter found...";
- case NEARDAL_ERROR_NO_TARGET:
+ case NEARDAL_ERROR_NO_TAG:
return "No NFC tag found...";
case NEARDAL_ERROR_NO_RECORD:
/*! @brief Neard service, polling already active */
#define NEARDAL_ERROR_POLLING_ALREADY_ACTIVE ((errorCode_t) -8)
/*! @brief Neard service, no NEARDAL tag present */
-#define NEARDAL_ERROR_NO_TARGET ((errorCode_t) -9)
+#define NEARDAL_ERROR_NO_TAG ((errorCode_t) -9)
/*! @brief Neard service, no NEARDAL record present */
#define NEARDAL_ERROR_NO_RECORD ((errorCode_t) -10)
errorCode_t neardal_mgr_prv_get_tag(AdpProp *adpProp, gchar *tagName,
TagProp **tagProp)
{
- errorCode_t errCode = NEARDAL_ERROR_NO_TARGET;
+ errorCode_t errCode = NEARDAL_ERROR_NO_TAG;
guint len;
TagProp *tag = NULL;
GList *tmpList;
tagNb = g_list_length(adpProp->tagList);
if (tagNb <= 0)
- return NEARDAL_ERROR_NO_TARGET;
+ return NEARDAL_ERROR_NO_TAG;
err = NEARDAL_ERROR_NO_MEMORY;
tags = g_try_malloc0((tagNb + 1) * sizeof(char *));
*
*/
-#ifndef __NEARDAL_TARGET_H
-#define __NEARDAL_TARGET_H
+#ifndef __NEARDAL_TAG_H
+#define __NEARDAL_TAG_H
#include "neard_tag_proxy.h"
#include "neardal_record.h"
extern "C" {
#endif /* __cplusplus */
-#define NEARD_TARGETS_IF_NAME "org.neard.Tag"
+#define NEARD_TAGS_IF_NAME "org.neard.Tag"
#define NEARD_TGT_SIG_PROPCHANGED "property-changed"
/* NEARDAL Tag Properties */
}
#endif /* __cplusplus */
-#endif /* __NEARDAL_TARGET_H */
+#endif /* __NEARDAL_TAG_H */