summaryrefslogtreecommitdiff
path: root/src/lib/Eet_private.h
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2010-07-28 01:45:57 +0000
committerCarsten Haitzler <raster@rasterman.com>2010-07-28 01:45:57 +0000
commit1878ba534731f37a66536b2a05baa6a4043e0d36 (patch)
tree2ef0a4e97668474c4288629961af4ed85b5883cc /src/lib/Eet_private.h
parent26d4acf8f35f29c1b2efe04df96709886fffcfc1 (diff)
downloadeet-1878ba534731f37a66536b2a05baa6a4043e0d36.tar.gz
testing uncrustify on eet. this shall be standard efl formatting from
now on. you may run indent on code and convert to your own formatting if you want.. but all code MUST be "uncrustified" before being cxommitted to svn or before generating patches. time to get the formatting monster under control. SVN revision: 50563
Diffstat (limited to 'src/lib/Eet_private.h')
-rw-r--r--src/lib/Eet_private.h137
1 files changed, 81 insertions, 56 deletions
diff --git a/src/lib/Eet_private.h b/src/lib/Eet_private.h
index be7c0eb..b3b935b 100644
--- a/src/lib/Eet_private.h
+++ b/src/lib/Eet_private.h
@@ -11,56 +11,56 @@ typedef enum _Eet_Convert_Type Eet_Convert_Type;
enum _Eet_Convert_Type
{
- EET_D_NOT_CONVERTED = 0,
- EET_D_FLOAT = 1 << 1,
- EET_D_DOUBLE = 1 << 2,
- EET_D_FIXED_POINT = 1 << 4
+ EET_D_NOT_CONVERTED = 0,
+ EET_D_FLOAT = 1 << 1,
+ EET_D_DOUBLE = 1 << 2,
+ EET_D_FIXED_POINT = 1 << 4
};
-typedef struct _Eet_String Eet_String;
+typedef struct _Eet_String Eet_String;
struct _Eet_String
{
- const char *mmap;
- char *str;
+ const char *mmap;
+ char *str;
- int hash;
- int len;
+ int hash;
+ int len;
- int next;
- int prev;
+ int next;
+ int prev;
- float f;
- double d;
- Eina_F32p32 fp;
+ float f;
+ double d;
+ Eina_F32p32 fp;
- Eet_Convert_Type type;
+ Eet_Convert_Type type;
};
struct _Eet_Dictionary
{
- Eet_String *all;
+ Eet_String *all;
- int size;
- int offset;
+ int size;
+ int offset;
- int hash[256];
+ int hash[256];
- int count;
- int total;
+ int count;
+ int total;
- const char *start;
- const char *end;
+ const char *start;
+ const char *end;
};
struct _Eet_Node
{
- int type;
- int count;
+ int type;
+ int count;
const char *name;
const char *key;
- Eet_Node *values;
- Eet_Node *next;
- Eet_Node *parent;
+ Eet_Node *values;
+ Eet_Node *next;
+ Eet_Node *parent;
Eet_Node_Data data;
};
@@ -99,44 +99,69 @@ extern int _eet_log_dom_global;
#endif
#define CRIT(...) EINA_LOG_DOM_CRIT(_eet_log_dom_global, __VA_ARGS__)
-Eet_Dictionary *eet_dictionary_add(void);
-void eet_dictionary_free(Eet_Dictionary *ed);
-int eet_dictionary_string_add(Eet_Dictionary *ed, const char *string);
-int eet_dictionary_string_get_size(const Eet_Dictionary *ed, int index);
-const char *eet_dictionary_string_get_char(const Eet_Dictionary *ed, int index);
-Eina_Bool eet_dictionary_string_get_float(const Eet_Dictionary *ed, int index, float *result);
-Eina_Bool eet_dictionary_string_get_double(const Eet_Dictionary *ed, int index, double *result);
-Eina_Bool eet_dictionary_string_get_fp(const Eet_Dictionary *ed, int index, Eina_F32p32 *result);
-int eet_dictionary_string_get_hash(const Eet_Dictionary *ed, int index);
-
-int _eet_hash_gen(const char *key, int hash_size);
-
-const void* eet_identity_check(const void *data_base, unsigned int data_length,
- void **sha1, int *sha1_length,
- const void *signature_base, unsigned int signature_length,
- const void **raw_signature_base, unsigned int *raw_signature_length,
- int *x509_length);
-void *eet_identity_compute_sha1(const void *data_base, unsigned int data_length,
- int *sha1_length);
-Eet_Error eet_cipher(const void *data, unsigned int size, const char *key, unsigned int length, void **result, unsigned int *result_length);
-Eet_Error eet_decipher(const void *data, unsigned int size, const char *key, unsigned int length, void **result, unsigned int *result_length);
+Eet_Dictionary *eet_dictionary_add(void);
+void eet_dictionary_free(Eet_Dictionary *ed);
+int eet_dictionary_string_add(Eet_Dictionary *ed,
+ const char *string);
+int eet_dictionary_string_get_size(const Eet_Dictionary *ed,
+ int index);
+const char * eet_dictionary_string_get_char(const Eet_Dictionary *ed,
+ int index);
+Eina_Bool eet_dictionary_string_get_float(const Eet_Dictionary *ed,
+ int index,
+ float *result);
+Eina_Bool eet_dictionary_string_get_double(const Eet_Dictionary *ed,
+ int index,
+ double *result);
+Eina_Bool eet_dictionary_string_get_fp(const Eet_Dictionary *ed,
+ int index,
+ Eina_F32p32 *result);
+int eet_dictionary_string_get_hash(const Eet_Dictionary *ed,
+ int index);
+
+int _eet_hash_gen(const char *key, int hash_size);
+
+const void * eet_identity_check(const void *data_base,
+ unsigned int data_length,
+ void **sha1,
+ int *sha1_length,
+ const void *signature_base,
+ unsigned int signature_length,
+ const void **raw_signature_base,
+ unsigned int *raw_signature_length,
+ int *x509_length);
+void * eet_identity_compute_sha1(const void *data_base,
+ unsigned int data_length,
+ int *sha1_length);
+Eet_Error eet_cipher(const void *data,
+ unsigned int size,
+ const char *key,
+ unsigned int length,
+ void **result,
+ unsigned int *result_length);
+Eet_Error eet_decipher(const void *data,
+ unsigned int size,
+ const char *key,
+ unsigned int length,
+ void **result,
+ unsigned int *result_length);
Eet_Error eet_identity_sign(FILE *fp, Eet_Key *key);
-void eet_identity_unref(Eet_Key *key);
-void eet_identity_ref(Eet_Key *key);
+void eet_identity_unref(Eet_Key *key);
+void eet_identity_ref(Eet_Key *key);
-void eet_node_shutdown(void);
-int eet_node_init(void);
+void eet_node_shutdown(void);
+int eet_node_init(void);
Eet_Node *eet_node_new(void);
-void eet_node_free(Eet_Node *node);
+void eet_node_free(Eet_Node *node);
#ifndef PATH_MAX
# define PATH_MAX 4096
#endif
#ifdef DNDEBUG
-# define EET_ASSERT(Test, Do) if (Test == 0) Do;
+# define EET_ASSERT(Test, Do) if (Test == 0) {Do; }
#else
-# define EET_ASSERT(Test, Do) if (Test == 0) abort();
+# define EET_ASSERT(Test, Do) if (Test == 0) {abort(); }
#endif
#endif