summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-25 16:11:08 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-25 16:11:08 +0200
commit09a78560596ad9eeaf7f1737b716e9f724e2cd64 (patch)
treee3fa3d23193326f0e035a64dde3f962ae1a71acd
parentd89e43afd54b8419476d83ab2ab422d7e0bb47af (diff)
downloadedoors-09a78560596ad9eeaf7f1737b716e9f724e2cd64.zip
edoors-09a78560596ad9eeaf7f1737b716e9f724e2cd64.tar.gz
add prefix to #define identifiers
-rw-r--r--src/lib/eiotas_iota.c6
-rw-r--r--src/lib/eiotas_private.h6
2 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/eiotas_iota.c b/src/lib/eiotas_iota.c
index 79c45b2..1a1f7f8 100644
--- a/src/lib/eiotas_iota.c
+++ b/src/lib/eiotas_iota.c
@@ -26,7 +26,7 @@
int eiotas_iota_init(Eiotas_Iota *iota, const char *name, Eiotas_Iota *parent, Eiotas_Type type)
{
int ln, lp;
- char tmp[MAX_PATH_LENGTH];
+ char tmp[EIOTAS_MAX_PATH_LENGTH];
ln = strlen(name);
if(name==NULL || ln==0) {
@@ -39,8 +39,8 @@ int eiotas_iota_init(Eiotas_Iota *iota, const char *name, Eiotas_Iota *parent, E
iota->parent = parent;
if(parent) {
lp = eina_stringshare_strlen(parent->path);
- if((ln+lp+2)>MAX_PATH_LENGTH) {
- ERR("path length %d is > MAX_PATH_LENGTH (%d)",(ln+lp+2),MAX_PATH_LENGTH);
+ if((ln+lp+2)>EIOTAS_MAX_PATH_LENGTH) {
+ ERR("path length %d is > EIOTAS_MAX_PATH_LENGTH (%d)",(ln+lp+2),EIOTAS_MAX_PATH_LENGTH);
return 1;
}
memcpy(tmp,parent->path,lp);
diff --git a/src/lib/eiotas_private.h b/src/lib/eiotas_private.h
index 64c0b90..c9c8388 100644
--- a/src/lib/eiotas_private.h
+++ b/src/lib/eiotas_private.h
@@ -30,8 +30,10 @@
#define EINA_LOG_DOMAIN_DEFAULT eiotas_log_dom
#define EIOTA_LOG_DOMAIN "eiotas"
-#define MAX_PATH_LENGTH 256
-#define PATH_SEP '/'
+#define EIOTAS_MAX_PATH_LENGTH 256
+#define EIOTAS_MAX_ACTION_LENGTH 16
+#define EIOTAS_PATH_SEP '/'
+#define EIOTAS_PARTICLE_ARRAY_STEP 3
void eiotas_iota_desinit(Eiotas_Iota *iota);