summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);