summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-06-03 15:06:26 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-06-03 15:35:20 +0100
commit4bdacafaf15fd9f8160fcf444227d593717ab491 (patch)
treefa3aad007c9778e3b43ff4a957f9a4acbe254af7
parent8369dfd28fc60cbc021dabc7e1f73bf5d4e672a6 (diff)
eolian: start exposing Eolian_Documentation
-rw-r--r--src/lib/eolian/Eolian.h6
-rw-r--r--src/lib/eolian/eolian_database.h20
2 files changed, 22 insertions, 4 deletions
diff --git a/src/lib/eolian/Eolian.h b/src/lib/eolian/Eolian.h
index b9ca6db489..8f74460545 100644
--- a/src/lib/eolian/Eolian.h
+++ b/src/lib/eolian/Eolian.h
@@ -160,6 +160,12 @@ typedef struct _Eolian_Enum_Type_Field Eolian_Enum_Type_Field;
160 */ 160 */
161typedef struct _Eolian_Declaration Eolian_Declaration; 161typedef struct _Eolian_Declaration Eolian_Declaration;
162 162
163/* Documentation information
164 *
165 * @ingroup Eolian
166 */
167typedef struct _Eolian_Documentation Eolian_Documentation;
168
163typedef enum 169typedef enum
164{ 170{
165 EOLIAN_UNRESOLVED, 171 EOLIAN_UNRESOLVED,
diff --git a/src/lib/eolian/eolian_database.h b/src/lib/eolian/eolian_database.h
index f315d1ba46..62b50f2d05 100644
--- a/src/lib/eolian/eolian_database.h
+++ b/src/lib/eolian/eolian_database.h
@@ -60,19 +60,19 @@ typedef struct _Eolian_Object
60 int column; 60 int column;
61} Eolian_Object; 61} Eolian_Object;
62 62
63typedef struct _Eolian_Documentation 63struct _Eolian_Documentation
64{ 64{
65 Eolian_Object base; 65 Eolian_Object base;
66 Eina_Stringshare *summary; 66 Eina_Stringshare *summary;
67 Eina_Stringshare *description; 67 Eina_Stringshare *description;
68} Eolian_Documentation; 68};
69 69
70typedef struct _Eolian_Declaration 70struct _Eolian_Declaration
71{ 71{
72 Eolian_Declaration_Type type; 72 Eolian_Declaration_Type type;
73 Eina_Stringshare *name; 73 Eina_Stringshare *name;
74 void *data; 74 void *data;
75} Eolian_Declaration; 75};
76 76
77struct _Eolian_Class 77struct _Eolian_Class
78{ 78{
@@ -82,6 +82,7 @@ struct _Eolian_Class
82 Eina_Stringshare *name; 82 Eina_Stringshare *name;
83 Eolian_Class_Type type; 83 Eolian_Class_Type type;
84 Eina_Stringshare *description; 84 Eina_Stringshare *description;
85 Eolian_Documentation *doc;
85 Eina_Stringshare *legacy_prefix; 86 Eina_Stringshare *legacy_prefix;
86 Eina_Stringshare *eo_prefix; 87 Eina_Stringshare *eo_prefix;
87 Eina_Stringshare *data_type; 88 Eina_Stringshare *data_type;
@@ -126,6 +127,11 @@ struct _Eolian_Function
126 Eina_Stringshare *set_description; 127 Eina_Stringshare *set_description;
127 Eina_Stringshare *get_return_comment; 128 Eina_Stringshare *get_return_comment;
128 Eina_Stringshare *set_return_comment; 129 Eina_Stringshare *set_return_comment;
130 Eolian_Documentation *common_doc;
131 Eolian_Documentation *get_doc;
132 Eolian_Documentation *set_doc;
133 Eolian_Documentation *get_return_doc;
134 Eolian_Documentation *set_return_doc;
129 Eina_Bool obj_is_const :1; /* True if the object has to be const. Useful for a few methods. */ 135 Eina_Bool obj_is_const :1; /* True if the object has to be const. Useful for a few methods. */
130 Eina_Bool get_virtual_pure :1; 136 Eina_Bool get_virtual_pure :1;
131 Eina_Bool set_virtual_pure :1; 137 Eina_Bool set_virtual_pure :1;
@@ -151,6 +157,7 @@ struct _Eolian_Function_Parameter
151 Eolian_Type *type; 157 Eolian_Type *type;
152 Eolian_Expression *value; 158 Eolian_Expression *value;
153 Eina_Stringshare *description; 159 Eina_Stringshare *description;
160 Eolian_Documentation *doc;
154 Eolian_Parameter_Dir param_dir; 161 Eolian_Parameter_Dir param_dir;
155 Eina_Bool nonull :1; /* True if this argument cannot be NULL - deprecated */ 162 Eina_Bool nonull :1; /* True if this argument cannot be NULL - deprecated */
156 Eina_Bool nullable :1; /* True if this argument is nullable */ 163 Eina_Bool nullable :1; /* True if this argument is nullable */
@@ -169,6 +176,7 @@ struct _Eolian_Type
169 Eina_Hash *fields; 176 Eina_Hash *fields;
170 Eina_List *field_list; 177 Eina_List *field_list;
171 Eina_Stringshare *comment; 178 Eina_Stringshare *comment;
179 Eolian_Documentation *doc;
172 Eina_Stringshare *legacy; 180 Eina_Stringshare *legacy;
173 Eina_Stringshare *freefunc; 181 Eina_Stringshare *freefunc;
174 Eina_Bool is_const :1; 182 Eina_Bool is_const :1;
@@ -202,6 +210,7 @@ struct _Eolian_Event
202 Eolian_Object base; 210 Eolian_Object base;
203 Eina_Stringshare *name; 211 Eina_Stringshare *name;
204 Eina_Stringshare *comment; 212 Eina_Stringshare *comment;
213 Eolian_Documentation *doc;
205 Eolian_Type *type; 214 Eolian_Type *type;
206 Eolian_Class *klass; 215 Eolian_Class *klass;
207 int scope; 216 int scope;
@@ -214,6 +223,7 @@ struct _Eolian_Struct_Type_Field
214 Eolian_Object base; 223 Eolian_Object base;
215 Eolian_Type *type; 224 Eolian_Type *type;
216 Eina_Stringshare *comment; 225 Eina_Stringshare *comment;
226 Eolian_Documentation *doc;
217}; 227};
218 228
219struct _Eolian_Enum_Type_Field 229struct _Eolian_Enum_Type_Field
@@ -223,6 +233,7 @@ struct _Eolian_Enum_Type_Field
223 Eolian_Object base; 233 Eolian_Object base;
224 Eolian_Expression *value; 234 Eolian_Expression *value;
225 Eina_Stringshare *comment; 235 Eina_Stringshare *comment;
236 Eolian_Documentation *doc;
226 Eina_Bool is_public_value :1; 237 Eina_Bool is_public_value :1;
227}; 238};
228 239
@@ -259,6 +270,7 @@ struct _Eolian_Variable
259 Eolian_Type *base_type; 270 Eolian_Type *base_type;
260 Eolian_Expression *value; 271 Eolian_Expression *value;
261 Eina_Stringshare *comment; 272 Eina_Stringshare *comment;
273 Eolian_Documentation *doc;
262 Eina_Bool is_extern :1; 274 Eina_Bool is_extern :1;
263}; 275};
264 276