Skip to content

Commit

Permalink
add constants to represent no flags
Browse files Browse the repository at this point in the history
:Release Notes:

:Detailed Notes:
- added LUNA_METHOD_FLAGS_NONE
- added LUNA_SIGNAL_FLAGS_NONE
- added LUNA_PROPERTY_FLAGS_NONE

:Testing Performed:
desktop build

:QA Notes:

:Issues Addressed:
[CMB-2041] Add constants to represent no flags in luna-service2

Open-webOS-DCO-1.0-Signed-off-by: Nikolay Orliuk <nikolay.orliuk@lge.com>

Change-Id: I24f9628f6a68360e61585c3f80d9f1932abb335e
Reviewed-on: https://g2g.lgsvl.com/6526
Reviewed-by: DCO Verification
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Reviewed-by: Alekseyev Oleksandr <alekseyev.oleksandr@lge.com>
Reviewed-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Tested-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
  • Loading branch information
Nikolay Orliuk authored and jivchik committed Sep 12, 2014
1 parent b33ad2d commit fed4b9c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/public/luna-service2++/handle.hpp
Expand Up @@ -38,7 +38,7 @@ namespace LS {
&LS::Handle::methodWraper<cl_t, &cl_t::name>, \
static_cast<LSMethodFlags>(flags) },

#define LS_CATEGORY_METHOD1(name) LS_CATEGORY_METHOD2(name,0)
#define LS_CATEGORY_METHOD1(name) LS_CATEGORY_METHOD2(name, LUNA_METHOD_FLAGS_NONE)

#define GET_METHOD_MACRO(_1,_2,NAME,...) NAME

Expand Down
15 changes: 15 additions & 0 deletions include/public/luna-service2/lunaservice.h
Expand Up @@ -212,6 +212,11 @@ typedef enum {
*/
LUNA_METHOD_FLAG_VALIDATE_IN = (1 << 1),

/**
* Constant to reprsent method with no flags turned on
*/
LUNA_METHOD_FLAGS_NONE = 0,

/**
* Mask that covers all valid method flags. Anything outside treated as an
* error.
Expand All @@ -226,13 +231,23 @@ typedef enum {
*/
typedef enum {
LUNA_SIGNAL_FLAG_DEPRECATED = (1 << 0),

/**
* Constant to reprsent method with no flags turned on
*/
LUNA_SIGNAL_FLAGS_NONE = 0,
} LSSignalFlags;

/**
* @brief Property flags
*/
typedef enum {
LUNA_PROPERTY_FLAG_DEPRECATED = (1 << 0),

/**
* Constant to reprsent property with no flags turned on
*/
LUNA_PROPERTY_FLAGS_NONE = 0,
} LSPropertyFlags;

typedef struct {
Expand Down

0 comments on commit fed4b9c

Please sign in to comment.