summaryrefslogtreecommitdiff
path: root/src/bin/eldbus
diff options
context:
space:
mode:
authorMike Blumenkrantz <m.blumenkran@samsung.com>2013-06-19 11:08:10 +0100
committerMike Blumenkrantz <m.blumenkran@samsung.com>2013-06-19 11:18:46 +0100
commitb8ea27d53c14c0b5619554ecec06e2a147d9ed23 (patch)
tree18523024260ebd9ca06e7cae7ec0cbd2ea3ce424 /src/bin/eldbus
parent694e8a7d090dfd2fb1e1b97ea4e5816a27d67622 (diff)
s/LENGHT/LENGTH
Diffstat (limited to 'src/bin/eldbus')
-rw-r--r--src/bin/eldbus/parser.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/bin/eldbus/parser.c b/src/bin/eldbus/parser.c
index 96a8f9e..7ed0dfe 100644
--- a/src/bin/eldbus/parser.c
+++ b/src/bin/eldbus/parser.c
@@ -1,19 +1,19 @@
1#include "codegen.h" 1#include "codegen.h"
2 2
3#define OBJECT_TAG "node" 3#define OBJECT_TAG "node"
4#define OBJECT_TAG_LENGHT strlen(OBJECT_TAG) 4#define OBJECT_TAG_LENGTH strlen(OBJECT_TAG)
5#define INTERFACE_TAG "interface" 5#define INTERFACE_TAG "interface"
6#define INTERFACE_TAG_LENGHT strlen(INTERFACE_TAG) 6#define INTERFACE_TAG_LENGTH strlen(INTERFACE_TAG)
7#define SIGNAL_TAG "signal" 7#define SIGNAL_TAG "signal"
8#define SIGNAL_TAG_LENGHT strlen(SIGNAL_TAG) 8#define SIGNAL_TAG_LENGTH strlen(SIGNAL_TAG)
9#define METHOD_TAG "method" 9#define METHOD_TAG "method"
10#define METHOD_TAG_LENGHT strlen(METHOD_TAG) 10#define METHOD_TAG_LENGTH strlen(METHOD_TAG)
11#define PROPERTY_TAG "property" 11#define PROPERTY_TAG "property"
12#define PROPERTY_TAG_LENGHT strlen(PROPERTY_TAG) 12#define PROPERTY_TAG_LENGTH strlen(PROPERTY_TAG)
13#define ARG_TAG "arg" 13#define ARG_TAG "arg"
14#define ARG_TAG_LENGHT strlen(ARG_TAG) 14#define ARG_TAG_LENGTH strlen(ARG_TAG)
15#define ANNOTATION_TAG "annotation" 15#define ANNOTATION_TAG "annotation"
16#define ANNOTATION_TAG_LENGHT strlen(ANNOTATION_TAG) 16#define ANNOTATION_TAG_LENGTH strlen(ANNOTATION_TAG)
17 17
18//attributes 18//attributes
19#define NAME_ATTR "name" 19#define NAME_ATTR "name"
@@ -407,21 +407,21 @@ static Eina_Bool
407open_tag(const char *content, unsigned length, Eina_Bool is_open_empty, DBus_Object **obj) 407open_tag(const char *content, unsigned length, Eina_Bool is_open_empty, DBus_Object **obj)
408{ 408{
409 unsigned int i; 409 unsigned int i;
410 if (!strncmp(content, OBJECT_TAG, OBJECT_TAG_LENGHT)) 410 if (!strncmp(content, OBJECT_TAG, OBJECT_TAG_LENGTH))
411 return open_object(content, length, is_open_empty, obj); 411 return open_object(content, length, is_open_empty, obj);
412 else if (!strncmp(content, INTERFACE_TAG, INTERFACE_TAG_LENGHT) && *obj) 412 else if (!strncmp(content, INTERFACE_TAG, INTERFACE_TAG_LENGTH) && *obj)
413 return open_interface(content, length, is_open_empty, *obj); 413 return open_interface(content, length, is_open_empty, *obj);
414 else if (!strncmp(content, SIGNAL_TAG, SIGNAL_TAG_LENGHT) && iface) 414 else if (!strncmp(content, SIGNAL_TAG, SIGNAL_TAG_LENGTH) && iface)
415 return open_signal(content, length, is_open_empty); 415 return open_signal(content, length, is_open_empty);
416 else if (!strncmp(content, ARG_TAG, ARG_TAG_LENGHT) && iface) 416 else if (!strncmp(content, ARG_TAG, ARG_TAG_LENGTH) && iface)
417 return open_arg(content, length); 417 return open_arg(content, length);
418 else if (!strncmp(content, ANNOTATION_TAG, ANNOTATION_TAG_LENGHT) && iface) 418 else if (!strncmp(content, ANNOTATION_TAG, ANNOTATION_TAG_LENGTH) && iface)
419 return open_annotation(content, length); 419 return open_annotation(content, length);
420 else if (!strncmp(content, METHOD_TAG, METHOD_TAG_LENGHT) && iface) 420 else if (!strncmp(content, METHOD_TAG, METHOD_TAG_LENGTH) && iface)
421 return open_method(content, length, is_open_empty); 421 return open_method(content, length, is_open_empty);
422 else if (!strncmp(content, PROPERTY_TAG, PROPERTY_TAG_LENGHT) && iface) 422 else if (!strncmp(content, PROPERTY_TAG, PROPERTY_TAG_LENGTH) && iface)
423 return open_property(content, length); 423 return open_property(content, length);
424 else if (!strncmp(content, ANNOTATION_TAG, ANNOTATION_TAG_LENGHT) && iface) 424 else if (!strncmp(content, ANNOTATION_TAG, ANNOTATION_TAG_LENGTH) && iface)
425 return EINA_TRUE; 425 return EINA_TRUE;
426 426
427 printf("Warning: Tag not handled:\n"); 427 printf("Warning: Tag not handled:\n");
@@ -435,13 +435,13 @@ open_tag(const char *content, unsigned length, Eina_Bool is_open_empty, DBus_Obj
435static Eina_Bool 435static Eina_Bool
436close_tag(const char *content) 436close_tag(const char *content)
437{ 437{
438 if (!strncmp(content, INTERFACE_TAG, INTERFACE_TAG_LENGHT)) 438 if (!strncmp(content, INTERFACE_TAG, INTERFACE_TAG_LENGTH))
439 interface_close(); 439 interface_close();
440 if (!strncmp(content, SIGNAL_TAG, SIGNAL_TAG_LENGHT)) 440 if (!strncmp(content, SIGNAL_TAG, SIGNAL_TAG_LENGTH))
441 signal_close(); 441 signal_close();
442 else if (!strncmp(content, METHOD_TAG, METHOD_TAG_LENGHT)) 442 else if (!strncmp(content, METHOD_TAG, METHOD_TAG_LENGTH))
443 method_close(); 443 method_close();
444 else if (!strncmp(content, PROPERTY_TAG, PROPERTY_TAG_LENGHT)) 444 else if (!strncmp(content, PROPERTY_TAG, PROPERTY_TAG_LENGTH))
445 property = NULL; 445 property = NULL;
446 446
447 return EINA_TRUE; 447 return EINA_TRUE;