if (expr) { \
ERR("(%s)", #expr); \
return; \
- }\
- } while(0)
+ } \
+ } while (0)
#define RETV_IF(expr, val) \
- do {\
+ do { \
if (expr) { \
ERR("(%s)", #expr); \
return (val); \
} \
- } while(0)
+ } while (0)
#define RETM_IF(expr, fmt, arg...) \
- do {\
+ do { \
if (expr) { \
ERR(fmt, ##arg); \
return; \
- }\
- } while(0)
+ } \
+ } while (0)
#define RETVM_IF(expr, val, fmt, arg...) \
- do {\
+ do { \
if (expr) { \
ERR(fmt, ##arg); \
return (val); \
} \
- } while(0)
+ } while (0)
#define ERR_IF(expr) \
do { \
* @since_tizen 3.0
*/
typedef enum {
- IOTCON_PRESENCE_RESOURCE_CREATED, /**< Indicates for resource creation operation of server */
- IOTCON_PRESENCE_RESOURCE_UPDATED, /**< Indicates for resource update operation of server */
- IOTCON_PRESENCE_RESOURCE_DESTROYED, /**< Indicates for resource destruction operation of server */
+ IOTCON_PRESENCE_RESOURCE_CREATED, /**< Indicates for resource creation operation of server */
+ IOTCON_PRESENCE_RESOURCE_UPDATED, /**< Indicates for resource update operation of server */
+ IOTCON_PRESENCE_RESOURCE_DESTROYED, /**< Indicates for resource destruction operation of server */
} iotcon_presence_trigger_e;
/**
*
* @{
*/
-typedef enum
-{
+typedef enum {
IOTCON_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
IOTCON_ERROR_IO_ERROR = TIZEN_ERROR_IO_ERROR, /**< I/O error */
IOTCON_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */
IOTCON_ERROR_ALREADY = TIZEN_ERROR_IOTCON | 0x04, /**< Already */
IOTCON_ERROR_DBUS = TIZEN_ERROR_IOTCON | 0x05, /**< D-Bus errors */
IOTCON_ERROR_SYSTEM = TIZEN_ERROR_IOTCON | 0x06, /**< System errors */
-}iotcon_error_e;
+} iotcon_error_e;
/**
* @}
if (expr) { \
ERR("(%s)", #expr); \
return; \
- }\
- } while(0)
+ } \
+ } while (0)
#define RETV_IF(expr, val) \
- do {\
+ do { \
if (expr) { \
ERR("(%s)", #expr); \
return (val); \
} \
- } while(0)
+ } while (0)
#define RETM_IF(expr, fmt, arg...) \
- do {\
+ do { \
if (expr) { \
ERR(fmt, ##arg); \
return; \
- }\
- } while(0)
+ } \
+ } while (0)
#define RETVM_IF(expr, val, fmt, arg...) \
- do {\
+ do { \
if (expr) { \
ERR(fmt, ##arg); \
return (val); \
} \
- } while(0)
+ } while (0)
#define ERR_IF(expr) \
do { \