Skip to content

Commit

Permalink
core: kemi - added identifier for int-str type
Browse files Browse the repository at this point in the history
- useful for dumping attributes for special kemi functions
  • Loading branch information
miconda committed May 2, 2016
1 parent 7cc31c5 commit 0135d9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions kemi.c
Expand Up @@ -1027,10 +1027,11 @@ typedef struct sr_kemi_param_map {
*
*/
static sr_kemi_param_map_t _sr_kemi_param_map[] = {
{ SR_KEMIP_NONE, str_init("none") },
{ SR_KEMIP_INT, str_init("int") },
{ SR_KEMIP_STR, str_init("str") },
{ SR_KEMIP_BOOL, str_init("bool") },
{ SR_KEMIP_NONE, str_init("none") },
{ SR_KEMIP_INT, str_init("int") },
{ SR_KEMIP_STR, str_init("str") },
{ SR_KEMIP_BOOL, str_init("bool") },
{ SR_KEMIP_INTSTR, str_init("int-str") },
{ 0, STR_NULL }
};

Expand Down
1 change: 1 addition & 0 deletions kemi.h
Expand Up @@ -30,6 +30,7 @@
#define SR_KEMIP_INT (1<<0) /* type integer */
#define SR_KEMIP_STR (1<<1) /* type str* */
#define SR_KEMIP_BOOL (1<<2) /* type boolean (0/1) */
#define SR_KEMIP_INTSTR (1<<3) /* type integer or str* */

#define SR_KEMI_FALSE 0
#define SR_KEMI_TRUE 1
Expand Down

0 comments on commit 0135d9a

Please sign in to comment.