diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-03-28 14:43:16 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-03-28 14:43:16 +0200 |
commit | a14d696bdbc72754e8019fa9579d5a338cc85a05 (patch) | |
tree | 2533a574e03a9954b9eeaf7750219d3175ce8b99 /src/tools/irm/irm_utils.c | |
parent | d37add0f20c93432c0b4c12866810c124a7a18ec (diff) | |
download | ouroboros-a14d696bdbc72754e8019fa9579d5a338cc85a05.tar.gz ouroboros-a14d696bdbc72754e8019fa9579d5a338cc85a05.zip |
lib: Update irm.h API
Removes rina_name_t from that API. Passing ap_name and api_id as
params instead. The IRM tool has been updated accordingly. Some errors
in the build related to protobuf-c have also been resolved.
Diffstat (limited to 'src/tools/irm/irm_utils.c')
-rw-r--r-- | src/tools/irm/irm_utils.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/tools/irm/irm_utils.c b/src/tools/irm/irm_utils.c index 04cb7242..feb8ac98 100644 --- a/src/tools/irm/irm_utils.c +++ b/src/tools/irm/irm_utils.c @@ -36,19 +36,3 @@ int matches(const char * cmd, const char * pattern) return memcmp(pattern, cmd, len); } - - -bool parse_name(char ** argv, - rina_name_t * name) -{ - bool found = true; - - if (matches(*argv, "ap") == 0) - name->ap_name = *(argv + 1); - else if (matches(*argv, "api") == 0) - name->api_id = atoi(*(argv + 1)); - else - found = false; - - return found; -} |