summaryrefslogtreecommitdiff
path: root/src/scripts
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-09-26 16:56:13 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-09-26 16:56:13 +0200
commitb0ee540ec9a52824c79f42bff4fc6e06e0492f96 (patch)
tree8b60cbbc5d93f771b09695d74de849eeb6722c7f /src/scripts
parentcdff7852e03840fddb28e6ac451be80cfd877b94 (diff)
eolian: rename param direction enum and fields for consistency
Diffstat (limited to 'src/scripts')
-rw-r--r--src/scripts/gendoc/doc_macros.include6
-rw-r--r--src/scripts/pyolian/eolian.py4
-rw-r--r--src/scripts/pyolian/eolian_lib.py2
-rwxr-xr-xsrc/scripts/pyolian/generator.py2
-rwxr-xr-xsrc/scripts/pyolian/test_eolian.py2
5 files changed, 8 insertions, 8 deletions
diff --git a/src/scripts/gendoc/doc_macros.include b/src/scripts/gendoc/doc_macros.include
index 483c3d4e91..64b5311e5a 100644
--- a/src/scripts/gendoc/doc_macros.include
+++ b/src/scripts/gendoc/doc_macros.include
@@ -236,11 +236,11 @@ interface#!
236#!#### PARAM_DIRECTION_TAG(param) ############################################ 236#!#### PARAM_DIRECTION_TAG(param) ############################################
237#!############################################################################## 237#!##############################################################################
238<!--(macro PARAM_DIRECTION_TAG)--> 238<!--(macro PARAM_DIRECTION_TAG)-->
239 <!--(if param.direction == Eolian_Parameter_Dir.IN)--> 239 <!--(if param.direction == Eolian_Parameter_Direction.IN)-->
240 ''in'' #! 240 ''in'' #!
241 <!--(elif param.direction == Eolian_Parameter_Dir.OUT)--> 241 <!--(elif param.direction == Eolian_Parameter_Direction.OUT)-->
242 ''out'' #! 242 ''out'' #!
243 <!--(elif param.direction == Eolian_Parameter_Dir.INOUT)--> 243 <!--(elif param.direction == Eolian_Parameter_Direction.INOUT)-->
244 ''inout'' #! 244 ''inout'' #!
245 <!--(end)--> 245 <!--(end)-->
246<!--(end)--> 246<!--(end)-->
diff --git a/src/scripts/pyolian/eolian.py b/src/scripts/pyolian/eolian.py
index e18fbf6899..bed0beab62 100644
--- a/src/scripts/pyolian/eolian.py
+++ b/src/scripts/pyolian/eolian.py
@@ -45,7 +45,7 @@ class Eolian_Function_Type(IntEnum):
45 METHOD = 4 45 METHOD = 4
46 FUNCTION_POINTER = 5 46 FUNCTION_POINTER = 5
47 47
48class Eolian_Parameter_Dir(IntEnum): 48class Eolian_Parameter_Direction(IntEnum):
49 UNKNOWN = 0 49 UNKNOWN = 0
50 IN = 1 50 IN = 1
51 OUT = 2 51 OUT = 2
@@ -946,7 +946,7 @@ class Function_Parameter(Object):
946 946
947 @cached_property 947 @cached_property
948 def direction(self): 948 def direction(self):
949 return Eolian_Parameter_Dir(lib.eolian_parameter_direction_get(self)) 949 return Eolian_Parameter_Direction(lib.eolian_parameter_direction_get(self))
950 950
951 @cached_property 951 @cached_property
952 def documentation(self): 952 def documentation(self):
diff --git a/src/scripts/pyolian/eolian_lib.py b/src/scripts/pyolian/eolian_lib.py
index 09f88c3783..f219eecfd7 100644
--- a/src/scripts/pyolian/eolian_lib.py
+++ b/src/scripts/pyolian/eolian_lib.py
@@ -371,7 +371,7 @@ lib.eolian_property_values_get.restype = c_void_p
371 371
372### Eolian_Function_Parameter ############################################### 372### Eolian_Function_Parameter ###############################################
373 373
374# EAPI Eolian_Parameter_Dir eolian_parameter_direction_get(const Eolian_Function_Parameter *param); 374# EAPI Eolian_Parameter_Direction eolian_parameter_direction_get(const Eolian_Function_Parameter *param);
375lib.eolian_parameter_direction_get.argtypes = (c_void_p,) 375lib.eolian_parameter_direction_get.argtypes = (c_void_p,)
376lib.eolian_parameter_direction_get.restype = c_int 376lib.eolian_parameter_direction_get.restype = c_int
377 377
diff --git a/src/scripts/pyolian/generator.py b/src/scripts/pyolian/generator.py
index a86e03240c..5d119d3511 100755
--- a/src/scripts/pyolian/generator.py
+++ b/src/scripts/pyolian/generator.py
@@ -130,7 +130,7 @@ class Template(pyratemp.Template):
130 'Documentation_Token': eolian.Documentation_Token, 130 'Documentation_Token': eolian.Documentation_Token,
131 # Eolian Enums 131 # Eolian Enums
132 'Eolian_Function_Type': eolian.Eolian_Function_Type, 132 'Eolian_Function_Type': eolian.Eolian_Function_Type,
133 'Eolian_Parameter_Dir': eolian.Eolian_Parameter_Dir, 133 'Eolian_Parameter_Direction': eolian.Eolian_Parameter_Direction,
134 'Eolian_Class_Type': eolian.Eolian_Class_Type, 134 'Eolian_Class_Type': eolian.Eolian_Class_Type,
135 'Eolian_Object_Scope': eolian.Eolian_Object_Scope, 135 'Eolian_Object_Scope': eolian.Eolian_Object_Scope,
136 'Eolian_Typedecl_Type': eolian.Eolian_Typedecl_Type, 136 'Eolian_Typedecl_Type': eolian.Eolian_Typedecl_Type,
diff --git a/src/scripts/pyolian/test_eolian.py b/src/scripts/pyolian/test_eolian.py
index 2a45c57829..7e2d1402c0 100755
--- a/src/scripts/pyolian/test_eolian.py
+++ b/src/scripts/pyolian/test_eolian.py
@@ -382,7 +382,7 @@ class TestEolianFunction(unittest.TestCase):
382 cls = eolian_db.class_by_name_get('Efl.Loop_Timer') 382 cls = eolian_db.class_by_name_get('Efl.Loop_Timer')
383 f = cls.function_by_name_get('timer_delay') 383 f = cls.function_by_name_get('timer_delay')
384 p = list(f.parameters)[0] 384 p = list(f.parameters)[0]
385 self.assertEqual(p.direction, eolian.Eolian_Parameter_Dir.IN) 385 self.assertEqual(p.direction, eolian.Eolian_Parameter_Direction.IN)
386 self.assertEqual(p.name, 'add') 386 self.assertEqual(p.name, 'add')
387 self.assertIsNone(p.default_value) 387 self.assertIsNone(p.default_value)
388 self.assertFalse(p.is_optional) 388 self.assertFalse(p.is_optional)