summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2012-12-11 16:04:08 +0200
committerYakov Goldberg <yakov.g@samsung.com>2012-12-13 17:36:35 +0200
commitffccf7a59a213a4ad232b46be2a6154222a20984 (patch)
tree27a5f25f9726031915783d6a7474aa491dba9136
parent301f4ea677ca7eced80fac38dc0d7393de59a27b (diff)
Major fixes
Fix: parsing filenames in helper XML gen: option -X(--xmldir) used to include xml dir Signal, evas, evas_elm examples updated Py gen; added prefixes to proper folders layout and setup.py script - Updated examples to search for everything in eorepo - const.PREFIX="eorepo" added this const must provide package path. And also used to generate files Creates two packages: eoparser - with cpyrser, xmlparser modules eorepo - with eodefault, eobase modules. examples are witten in /usr/local/share/eoparser/examples This needed to be changed in other way eorepo/ __init__.py (empty) base/ eodefault.so eobase.so __init__.py (from base.eobase import smth) (from base.eodefault import smth) elementary/ c_elm.so __init__.so (from elementary.c_elm import Win) (from elementary.c_elm import Button) That will provide the following: example.py import elementary (and the following can be used elementary.Win()) from elementary import * (and the following can be used Win()) Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
-rwxr-xr-xbin/eo_js_gen.py (renamed from eo_js/eo_js_gen.py)2
-rwxr-xr-xbin/eo_py_gen.py (renamed from eo_py/eo_py_gen.py)102
-rwxr-xr-xbin/eo_xml_gen.py2
-rw-r--r--eoparser/helper.py28
-rw-r--r--eoparser/xmlparser.py88
-rw-r--r--eorepo/EoBase.xml90
-rw-r--r--eorepo/__init__.py3
-rw-r--r--eorepo/eobase.c5268
-rw-r--r--eorepo/eobase.pxd40
-rw-r--r--eorepo/eobase.pxi108
-rw-r--r--eorepo/eobase.pyx1
-rw-r--r--eorepo/eodefault.c4095
-rw-r--r--eorepo/eodefault.pxd84
-rw-r--r--eorepo/eodefault.pyx149
-rw-r--r--examples/evas_elem_test.py8
-rw-r--r--examples/evas_test2.py7
-rw-r--r--examples/signal_test.py62
-rw-r--r--setup.py93
-rw-r--r--tests/tests.py2
19 files changed, 10122 insertions, 110 deletions
diff --git a/eo_js/eo_js_gen.py b/bin/eo_js_gen.py
index a5a054c..7855ceb 100755
--- a/eo_js/eo_js_gen.py
+++ b/bin/eo_js_gen.py
@@ -24,6 +24,8 @@ def makefile_file_generate(args, c_files, outdir):
24 lib_paths = args.library_paths 24 lib_paths = args.library_paths
25 cpp_defines = args.cpp_defines 25 cpp_defines = args.cpp_defines
26 26
27 #if someone wants to add -DSOME_STR=\"str\"
28 #I will add one more escape symbol, because I also generate Makefile
27 if cpp_defines is not None: 29 if cpp_defines is not None:
28 lst_tmp = [] 30 lst_tmp = []
29 for d in cpp_defines: 31 for d in cpp_defines:
diff --git a/eo_py/eo_py_gen.py b/bin/eo_py_gen.py
index bcb60be..e43e4a9 100755
--- a/eo_py/eo_py_gen.py
+++ b/bin/eo_py_gen.py
@@ -1,10 +1,13 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2 2
3from eoparser.helper import isXML, abs_path_get, dir_files_get, normalize_names 3from eoparser.helper import isXML, abs_path_get, dir_files_get, _const
4from eoparser.xmlparser import XMLparser 4from eoparser.xmlparser import XMLparser
5from argparse import ArgumentParser 5from argparse import ArgumentParser
6import os, sys, shutil 6import os, sys, shutil
7 7
8
9const = _const()
10
8def verbose_true(mes): 11def verbose_true(mes):
9 print mes 12 print mes
10 13
@@ -18,6 +21,16 @@ def setup_file_generate(args, outdir):
18 incl_paths = args.include_paths 21 incl_paths = args.include_paths
19 libs = args.libraries 22 libs = args.libraries
20 lib_paths = args.library_paths 23 lib_paths = args.library_paths
24 cpp_defines = args.cpp_defines
25
26 #if someone wants to add -DSOME_STR=\"str\"
27 #I will add one more escape symbol, because I also generate setup.py
28 if cpp_defines is not None:
29 lst_tmp = []
30 for d in cpp_defines:
31 lst_tmp.append(d.replace("\"", "\\\""))
32 cpp_defines = list(lst_tmp)
33 del lst_tmp
21 34
22 module_file = module_name + ".pyx" 35 module_file = module_name + ".pyx"
23 36
@@ -25,7 +38,7 @@ def setup_file_generate(args, outdir):
25 lines.append("from distutils.core import setup") 38 lines.append("from distutils.core import setup")
26 lines.append("from distutils.extension import Extension") 39 lines.append("from distutils.extension import Extension")
27 lines.append("from Cython.Distutils import build_ext") 40 lines.append("from Cython.Distutils import build_ext")
28 lines.append("import commands, os") 41 lines.append("import commands")
29 lines.append("") 42 lines.append("")
30 43
31 lines.append("def pkgconfig(_libs):") 44 lines.append("def pkgconfig(_libs):")
@@ -37,6 +50,11 @@ def setup_file_generate(args, outdir):
37 lines.append("(e_compile_args, e_link_args) = pkgconfig(\"%s\")"%pkg) 50 lines.append("(e_compile_args, e_link_args) = pkgconfig(\"%s\")"%pkg)
38 lines.append("") 51 lines.append("")
39 52
53
54 if cpp_defines is not None:
55 for d in cpp_defines:
56 lines.append("e_compile_args.append(\"-D%s\")"%d)
57
40 include_dirs = ["\".\""] 58 include_dirs = ["\".\""]
41 if incl_paths is not None: 59 if incl_paths is not None:
42 for i in incl_paths: 60 for i in incl_paths:
@@ -58,17 +76,26 @@ def setup_file_generate(args, outdir):
58 lines.append("e_libraries = [%s]"%', '.join(lib_names)) 76 lines.append("e_libraries = [%s]"%', '.join(lib_names))
59 del lib_names 77 del lib_names
60 78
61
62 lines.append("") 79 lines.append("")
63 80
64 lines.append("setup(") 81 lines.append("setup(")
65 lines.append(" cmdclass = {'build_ext': build_ext},") 82 lines.append(" cmdclass = {'build_ext': build_ext},")
66 lines.append(" ext_modules = [")
67 83
68 if module_name == "eobase": 84 if module_name == "eobase":
69 lines.append(" Extension(\"%s\", ['%s'], include_dirs = e_include_dirs, library_dirs = e_library_dirs, libraries = e_libraries, extra_compile_args = e_compile_args, extra_link_args = e_link_args),"%("eodefault", "eodefault.pyx")) 85 lines.append(" name = 'eobase_test_name',")
86 lines.append(" packages=['%s'],"%const.PREFIX)
87 lines.append(" package_data={'%s': ['EoBase.xml', 'eodefault.pxd']},"%(const.PREFIX))
88
89 lines.append(" ext_modules = [")
90 lines.append(" Extension(\"%s.%s\", ['%s/%s'], include_dirs = e_include_dirs, library_dirs = e_library_dirs, libraries = e_libraries, extra_compile_args = e_compile_args, extra_link_args = e_link_args),"%(const.PREFIX, "eodefault", const.PREFIX, "eodefault.pyx"))
70 91
71 lines.append(" Extension(\"%s\", ['%s'], include_dirs = e_include_dirs, library_dirs = e_library_dirs, libraries = e_libraries, extra_compile_args = e_compile_args, extra_link_args = e_link_args),"%(module_name, module_name + ".pyx")) 92 lines.append(" Extension(\"%s.%s\", ['%s/%s'], include_dirs = e_include_dirs, library_dirs = e_library_dirs, libraries = e_libraries, extra_compile_args = e_compile_args, extra_link_args = e_link_args),"%(const.PREFIX, module_name, const.PREFIX, module_name + ".pyx"))
93
94 else:
95 lines.append(" name='%s',"%module_name)
96 lines.append(" ext_package='%s',"%const.PREFIX)
97 lines.append(" ext_modules = [")
98 lines.append(" Extension(\"%s\", ['%s'], include_dirs = e_include_dirs, library_dirs = e_library_dirs, libraries = e_libraries, extra_compile_args = e_compile_args, extra_link_args = e_link_args),"%(module_name, module_name + ".pyx"))
72 99
73 lines.append(" ])\n\n") 100 lines.append(" ])\n\n")
74 101
@@ -109,6 +136,9 @@ def main():
109 parser.add_argument("-L", "--library-path", dest="library_paths", 136 parser.add_argument("-L", "--library-path", dest="library_paths",
110 action="append", help="Directories to search for libraries") 137 action="append", help="Directories to search for libraries")
111 138
139 parser.add_argument("-D", "--define", dest="cpp_defines",
140 action="append", help="Pre-processor define")
141
112 args = parser.parse_args() 142 args = parser.parse_args()
113 143
114 verbose_print = verbose_true if args.verbose is True else verbose_false 144 verbose_print = verbose_true if args.verbose is True else verbose_false
@@ -146,37 +176,47 @@ def main():
146 176
147 xp = XMLparser() 177 xp = XMLparser()
148 xp.module_parse(args.module, xml_files, incl_dirs) 178 xp.module_parse(args.module, xml_files, incl_dirs)
149 xp.py_code_generate(args.module ,outdir) 179
180
181 if args.module == "eobase":
182 outdir_tmp = os.path.join(outdir, const.PREFIX)
183 if not os.path.exists(outdir_tmp):
184 os.mkdir(outdir_tmp)
185 xp.py_code_generate(args.module ,outdir_tmp)
186 else:
187 xp.py_code_generate(args.module ,outdir)
150 188
151 setup_file_generate(args, outdir) 189 setup_file_generate(args, outdir)
152 190
153 #Looking for "eodefault.pxd" module. Needed to include 191 #Looking for "eodefault.pxd" module. Needed to include
154 for d in incl_dirs: 192 if args.module == "eobase":
155 d_tmp = os.path.join(d, "eodefault.pxd") 193 for d in incl_dirs:
156 if os.path.exists(d_tmp): 194 d_tmp = os.path.join(d, "eodefault.pxd")
157 sourcedir = d 195 #print "dir: ", d_tmp
158 break 196 if os.path.exists(d_tmp):
159 197 sourcedir = d
160 if sourcedir == "": 198 break
161 print "ERROR: no include files were found... Aborting... (Use: --include=INCLUDE_DIR)" 199
162 exit(1) 200 if sourcedir == "":
201 print "ERROR: no include files were found... Aborting... (Use: -X(--xmldir=)XML_DIR)"
202 exit(1)
163 203
164 #copying eodefault module into source dir 204 #copying eodefault module into source dir
165 f_pyx = os.path.join(sourcedir, "eodefault.pyx") 205 f_pyx = os.path.join(sourcedir, "eodefault.pyx")
166 f_pxd = os.path.join(sourcedir, "eodefault.pxd") 206 f_pxd = os.path.join(sourcedir, "eodefault.pxd")
167 f_init = os.path.join(sourcedir, "__init__.py") 207 f_init = os.path.join(sourcedir,"__init__.py")
168 try: 208 try:
169 #this file is needed only to build eodefault. 209 #this file is needed only to build eodefault.
170 if args.module == "eobase": 210 outdir_tmp = os.path.join(outdir, const.PREFIX)
171 shutil.copy(f_pyx, outdir) 211 shutil.copy(f_pyx, outdir_tmp)
172 shutil.copy(f_pxd, outdir) 212 shutil.copy(f_pxd, outdir_tmp)
173 shutil.copy(f_init, outdir) 213 shutil.copy(f_init, outdir_tmp)
174 except IOError as ex: 214 except IOError as ex:
175 print "%s"%ex 215 print "%s"%ex
176 print "Aborting" 216 print "Aborting"
177 exit(1) 217 exit(1)
178 except shutil.Error as er: 218 except shutil.Error as er:
179 print "Warning: %s"%er 219 print "Warning: %s"%er
180 220
181 del xp 221 del xp
182 222
diff --git a/bin/eo_xml_gen.py b/bin/eo_xml_gen.py
index 2b4cc81..5e5f26b 100755
--- a/bin/eo_xml_gen.py
+++ b/bin/eo_xml_gen.py
@@ -27,7 +27,7 @@ def main():
27 parser.add_argument("-t", "--typedefs", dest="typedefs", 27 parser.add_argument("-t", "--typedefs", dest="typedefs",
28 action="store", help="Additional typedefs for parser") 28 action="store", help="Additional typedefs for parser")
29 29
30 parser.add_argument("-i", "--include", dest="xmldir", default = sys.path, 30 parser.add_argument("-X", "--xmldir", dest="xmldir", default = sys.path,
31 action="append", help="Include xml directory") 31 action="append", help="Include xml directory")
32 32
33 parser.add_argument("-v", "--verbose", 33 parser.add_argument("-v", "--verbose",
diff --git a/eoparser/helper.py b/eoparser/helper.py
index 3f4c15b..5ea7523 100644
--- a/eoparser/helper.py
+++ b/eoparser/helper.py
@@ -13,6 +13,7 @@ class _const:
13 # most of constants are used as internal dict keys, 13 # most of constants are used as internal dict keys,
14 # but some of them are also used as tags in XML 14 # but some of them are also used as tags in XML
15 # Changing this constans will only spoil the view of XML 15 # Changing this constans will only spoil the view of XML
16 self.PREFIX = "eorepo" #used as xml-tag
16 17
17 self.NAME = "name" #used as xml-tag 18 self.NAME = "name" #used as xml-tag
18 self.C_NAME = "c_name" #used as xml-tag 19 self.C_NAME = "c_name" #used as xml-tag
@@ -73,25 +74,28 @@ class _const:
73 self.DIRECTION = "direction" #used as xml-tag 74 self.DIRECTION = "direction" #used as xml-tag
74 75
75 76
76def isC(s): 77def isC(_path):
77 #FIXME when parsing eobase we can catch "eo.c" with EO_DEFINE_CLASS 78 #FIXME when parsing eobase we can catch "eo.c" with EO_DEFINE_CLASS
78 path_lst = s.split('.') 79 (d, f) = os.path.split(_path)
79 if len(path_lst) == 2: 80 f_name = f.split('.')
80 return True if path_lst[1] in ["c", "cc", "cpp"] else False 81 if len(f_name) == 2:
82 return True if f_name[1] in ["c", "cc", "cpp"] else False
81 else: 83 else:
82 return False 84 return False
83 85
84def isH(s): 86def isH(_path):
85 path_lst = s.split('.') 87 (d, f) = os.path.split(_path)
86 if len(path_lst) == 2: 88 f_name = f.split('.')
87 return True if path_lst[1] in ["h"] else False 89 if len(f_name) == 2:
90 return True if f_name[1] in ["h"] else False
88 else: 91 else:
89 return False 92 return False
90 93
91def isXML(s): 94def isXML(_path):
92 path_lst = s.split('.') 95 (d, f) = os.path.split(_path)
93 if len(path_lst) == 2: 96 f_name = f.split('.')
94 return True if path_lst[1] in ["xml"] else False 97 if len(f_name) == 2:
98 return True if f_name[1] in ["xml"] else False
95 else: 99 else:
96 return False 100 return False
97 101
diff --git a/eoparser/xmlparser.py b/eoparser/xmlparser.py
index 045429b..0ccb38c 100644
--- a/eoparser/xmlparser.py
+++ b/eoparser/xmlparser.py
@@ -1,7 +1,7 @@
1import xml.parsers.expat, os, shutil 1import xml.parsers.expat, os, shutil
2from eoparser.helper import isXML, abs_path_get, dir_files_get 2from eoparser.helper import isXML, abs_path_get, dir_files_get
3from helper import normalize_names, _const 3from helper import normalize_names, _const
4import copy 4import copy, sys
5 5
6const = _const() 6const = _const()
7 7
@@ -70,6 +70,8 @@ class Mod(object):
70 self.sub_id_function = "" 70 self.sub_id_function = ""
71 self.source_file = "" 71 self.source_file = ""
72 self.parents = [] 72 self.parents = []
73 self.path = ""
74 self.objects_incl = {}
73 self.V = None 75 self.V = None
74 76
75 # dictionary to save all object which have to be visited: Func, Ev, Init 77 # dictionary to save all object which have to be visited: Func, Ev, Init
@@ -800,10 +802,12 @@ class PyVisitor(Visitor):
800 self.pxi.ev = [] 802 self.pxi.ev = []
801 self.pxi.funcs_parsed = [] 803 self.pxi.funcs_parsed = []
802 804
805 """
803 self.pxd = Abstract() 806 self.pxd = Abstract()
804 self.pxd.name = "" 807 self.pxd.name = ""
805 self.pxd.head = [] 808 self.pxd.head = []
806 self.pxd.ev = [] 809 self.pxd.ev = []
810 """
807 811
808 self.pxd2 = Abstract() 812 self.pxd2 = Abstract()
809 self.pxd2.name = "" 813 self.pxd2.name = ""
@@ -816,6 +820,7 @@ class PyVisitor(Visitor):
816 820
817 self.eodefault = {"macro" : "EO_DEFAULT_CLASS", 821 self.eodefault = {"macro" : "EO_DEFAULT_CLASS",
818 "module" : "eodefault", 822 "module" : "eodefault",
823 "prefix" : const.PREFIX,
819 "name": "EoDefault", 824 "name": "EoDefault",
820 "parentmodule": "NULL", 825 "parentmodule": "NULL",
821 "type" :"EO_CLASS_TYPE_REGULAR_NO_INSTANCE", 826 "type" :"EO_CLASS_TYPE_REGULAR_NO_INSTANCE",
@@ -1050,12 +1055,12 @@ class PyVisitor(Visitor):
1050 self.pxi.funcs_parsed += function_lines 1055 self.pxi.funcs_parsed += function_lines
1051 1056
1052 self.pxi.name = cl_obj.mod_name + ".pxi" 1057 self.pxi.name = cl_obj.mod_name + ".pxi"
1053 self.pxd.name = cl_obj.mod_name + ".pxd" 1058 self.pxd2.name = cl_obj.mod_name + ".pxd"
1054 1059
1055 pattern = "########################################################" 1060 pattern = "########################################################"
1056 l = '%s\n##\n## generated from from \"%s\"\n##\n%s'%(pattern, cl_obj.source_file, pattern) 1061 l = '%s\n##\n## generated from from \"%s\"\n##\n%s'%(pattern, cl_obj.source_file, pattern)
1057 self.pxi.head.append(l + '\n') 1062 self.pxi.head.append(l + '\n')
1058 self.pxd.head.append(l + '\n') 1063 #REMOVEself.pxd.head.append(l + '\n')
1059 1064
1060 #inserting cimports 1065 #inserting cimports
1061 #l = "cimport %s"%cl_obj.mod_name 1066 #l = "cimport %s"%cl_obj.mod_name
@@ -1066,8 +1071,9 @@ class PyVisitor(Visitor):
1066 1071
1067 l = "cimport %s as %s"%(self.py_module_name, cl_obj.mod_name) 1072 l = "cimport %s as %s"%(self.py_module_name, cl_obj.mod_name)
1068 self.pxi.head.append(l) 1073 self.pxi.head.append(l)
1069 l = "cimport %s"%cl_obj.basemodule 1074
1070 self.pxi.head.append(l + '\n') 1075 #l = "cimport %s"%cl_obj.basemodule
1076 #self.pxi.head.append(l + '\n')
1071 1077
1072 #defining class 1078 #defining class
1073 parents = [] 1079 parents = []
@@ -1083,10 +1089,29 @@ class PyVisitor(Visitor):
1083 self.pxi.head.append(l + "\n") 1089 self.pxi.head.append(l + "\n")
1084 1090
1085 if "EoBase" in parents: 1091 if "EoBase" in parents:
1086 l = "from %s import %s"%("eobase", "EoBase") 1092 l = "from %s.%s import %s"%(self.eodefault["prefix"], "eobase", "EoBase")
1087 self.pxi.head.append(l + "\n") 1093 self.pxi.head.append(l + "\n")
1088 1094
1089 l = "from %s import %s"%(self.eodefault["module"], "pytext_to_utf8") 1095 for p in parents:
1096 #if we have some parent obj to incl, t.e. it is not in the tree
1097 if p in cl_obj.objects_incl:
1098 path = cl_obj.objects_incl[p].path
1099 sys_path = list(sys.path)
1100 sys_path.sort(key = len, reverse = True)
1101 #this parent should be in search path
1102 for pth in sys_path:
1103 if pth in path:
1104 (d, n) = os.path.split(path)
1105 prefix = d.replace(pth, "").replace("/", ".").lstrip(".")
1106
1107 #FIXME
1108 #now prefix is like dir1.dir2
1109 #so we can make from dir1.dir2.mod_name import ParentClass
1110 # but I don't know mod_name, t.e. *.so!
1111
1112
1113
1114 l = "from %s.%s import %s"%(self.eodefault["prefix"], self.eodefault["module"], "pytext_to_utf8")
1090 self.pxi.head.append(l + "\n") 1115 self.pxi.head.append(l + "\n")
1091 1116
1092 #defining _id function 1117 #defining _id function
@@ -1102,18 +1127,18 @@ class PyVisitor(Visitor):
1102 self.pxi.head.append(l) 1127 self.pxi.head.append(l)
1103 1128
1104 #inserting cimports 1129 #inserting cimports
1105 l = "from %s cimport *"%(cl_obj.basemodule) 1130 #REMOVEl = "from %s cimport *"%(cl_obj.basemodule)
1106 self.pxd.head.append(l + '\n') 1131 #REMOVEself.pxd.head.append(l + '\n')
1107 1132
1108 #inserting externs from H 1133 #inserting externs from H
1109 l = "cdef extern from \"%s\":"%(cl_obj.includes[0]) 1134 l = "cdef extern from \"%s\":"%(cl_obj.includes[0])
1110 self.pxd.head.append(l + '\n') 1135 #REMOVEself.pxd.head.append(l + '\n')
1111 self.pxd2.head.append(l + '\n') 1136 self.pxd2.head.append(l + '\n')
1112 1137
1113 1138
1114 if cl_obj.extern_base_id != "": 1139 if cl_obj.extern_base_id != "":
1115 l = ' %s %s'%("Eo_Op", cl_obj.extern_base_id) 1140 l = ' %s %s'%("Eo_Op", cl_obj.extern_base_id)
1116 self.pxd.head.append(l + '\n') 1141 #REMOVEself.pxd.head.append(l + '\n')
1117 self.pxd2.head.append(l + '\n') 1142 self.pxd2.head.append(l + '\n')
1118 1143
1119 enum_lines = [] 1144 enum_lines = []
@@ -1126,14 +1151,14 @@ class PyVisitor(Visitor):
1126 1151
1127 if len(enum_lines) > 1: 1152 if len(enum_lines) > 1:
1128 for l in enum_lines: 1153 for l in enum_lines:
1129 self.pxd.head.append(l) 1154 #REMOVEself.pxd.head.append(l)
1130 self.pxd2.head.append(l) 1155 self.pxd2.head.append(l)
1131 self.pxd.head.append('\n') 1156 #REMOVEself.pxd.head.append('\n')
1132 self.pxd2.head.append('\n') 1157 self.pxd2.head.append('\n')
1133 1158
1134 for v in cl_obj.extern_funcs: 1159 for v in cl_obj.extern_funcs:
1135 l = ' %s %s'%(v[1], v[0]) 1160 l = ' %s %s'%(v[1], v[0])
1136 self.pxd.head.append(l) 1161 #REMOVEself.pxd.head.append(l)
1137 self.pxd2.head.append(l) 1162 self.pxd2.head.append(l)
1138 1163
1139 #generating event defenitions 1164 #generating event defenitions
@@ -1147,7 +1172,7 @@ class PyVisitor(Visitor):
1147 l = " %s = <long>%s.%s"%(name, _o.cl_obj.mod_name, v) 1172 l = " %s = <long>%s.%s"%(name, _o.cl_obj.mod_name, v)
1148 self.pxi.ev.append(l) 1173 self.pxi.ev.append(l)
1149 l = ' %s %s'%("Eo_Event_Description *", v) 1174 l = ' %s %s'%("Eo_Event_Description *", v)
1150 self.pxd.ev.append(l) 1175 #REMOVEself.pxd.ev.append(l)
1151 self.pxd2.ev.append(l) 1176 self.pxd2.ev.append(l)
1152 1177
1153 #saving data to pxi file 1178 #saving data to pxi file
@@ -1171,6 +1196,7 @@ class PyVisitor(Visitor):
1171 f.close() 1196 f.close()
1172 1197
1173 #saving data to pxd file 1198 #saving data to pxd file
1199 """
1174 def pxd_file_to_dir_save(self, _outdir): 1200 def pxd_file_to_dir_save(self, _outdir):
1175 1201
1176 f = open(os.path.join(_outdir, self.pxd.name), 'w') 1202 f = open(os.path.join(_outdir, self.pxd.name), 'w')
@@ -1184,6 +1210,7 @@ class PyVisitor(Visitor):
1184 f.write(l+'\n') 1210 f.write(l+'\n')
1185 f.write("\n") 1211 f.write("\n")
1186 f.close() 1212 f.close()
1213"""
1187 1214
1188 #saving data to pxd file 1215 #saving data to pxd file
1189 def get_pxd_lines_from_module(self): 1216 def get_pxd_lines_from_module(self):
@@ -1194,11 +1221,11 @@ class PyVisitor(Visitor):
1194 ret.append(l+'\n') 1221 ret.append(l+'\n')
1195 ret.append('\n') 1222 ret.append('\n')
1196 1223
1197 lst = self.pxd.ev 1224 lst = self.pxd2.ev
1198 for l in lst: 1225 for l in lst:
1199 ret.append(l+'\n') 1226 ret.append(l+'\n')
1200 ret.append('\n') 1227 ret.append('\n')
1201 return (ret, self.pxd.name) 1228 return (ret, self.pxd2.name)
1202 1229
1203class XMLparser(object): 1230class XMLparser(object):
1204 def __init__(self): 1231 def __init__(self):
@@ -1309,6 +1336,7 @@ class XMLparser(object):
1309 mod_o.sub_id_function = self.class_data["sub_id_function"] 1336 mod_o.sub_id_function = self.class_data["sub_id_function"]
1310 mod_o.source_file = self.source_file 1337 mod_o.source_file = self.source_file
1311 mod_o.parents = parent_list 1338 mod_o.parents = parent_list
1339 mod_o.path = fName
1312 1340
1313 # Saving function's description as Func object 1341 # Saving function's description as Func object
1314 # Defining if current function can be set/get property, property type is saved in seperate field 1342 # Defining if current function can be set/get property, property type is saved in seperate field
@@ -1424,7 +1452,7 @@ class XMLparser(object):
1424 xml_files = filter(isXML, xml_files) 1452 xml_files = filter(isXML, xml_files)
1425 1453
1426 if len(xml_files) == 0: 1454 if len(xml_files) == 0:
1427 print "ERROR: no include files found for %s classes... Aborting...(Use: --include=INCLUDE_DIR)"% ",".join(parents_to_find) 1455 print "ERROR: no include files found for %s classes... Aborting...(Use: -X(--xmldir=)XML_DIR)"% ",".join(parents_to_find)
1428 exit(1) 1456 exit(1)
1429 1457
1430 #Creating temp parser to look for parents in include files. 1458 #Creating temp parser to look for parents in include files.
@@ -1433,7 +1461,7 @@ class XMLparser(object):
1433 xp_incl.parse(f) 1461 xp_incl.parse(f)
1434 1462
1435 #Looking for parents, and saving proper object in include dictionary 1463 #Looking for parents, and saving proper object in include dictionary
1436 #FIXME: but later I never use it ?? 1464 #FIXME: but later I never use it USED! 12.12.12
1437 for n, o in xp_incl.objects.items(): 1465 for n, o in xp_incl.objects.items():
1438 if n in parents_to_find: 1466 if n in parents_to_find:
1439 i = parents_to_find.index(n) 1467 i = parents_to_find.index(n)
@@ -1533,7 +1561,16 @@ class XMLparser(object):
1533 o.kl_id = normalize_names([o.kl_id])[0] 1561 o.kl_id = normalize_names([o.kl_id])[0]
1534 o.parents = normalize_names(o.parents) 1562 o.parents = normalize_names(o.parents)
1535 objects_tmp[o.kl_id] = o 1563 objects_tmp[o.kl_id] = o
1536 self.objects = objects_tmp 1564 self.objects = dict(objects_tmp)
1565 del objects_tmp
1566
1567 #self.objects_incl - all parents which wasn't founc in current tree
1568 #o.objects_incl - parents for current obj, which wasn't found in
1569 #curren tree and need to import
1570 for n, o in self.objects.items():
1571 for p in o.parents:
1572 if p in self.objects_incl:
1573 o.objects_incl[p] = self.objects_incl[p]
1537 1574
1538 def py_code_generate(self, module_name, outdir): 1575 def py_code_generate(self, module_name, outdir):
1539 #normalizing names for each class object (Evas_Object Class -> EvasObjectClass) 1576 #normalizing names for each class object (Evas_Object Class -> EvasObjectClass)
@@ -1562,7 +1599,11 @@ class XMLparser(object):
1562 pattern = "########################################################" 1599 pattern = "########################################################"
1563 l = '%s\n##\n## generated from \"%s\"\n##\n%s'%(pattern, ", ".join(names), pattern) 1600 l = '%s\n##\n## generated from \"%s\"\n##\n%s'%(pattern, ", ".join(names), pattern)
1564 f.write(l + "\n") 1601 f.write(l + "\n")
1565 f.write("from eodefault cimport *\n\n") 1602 pv = PyVisitor("tmp")
1603 f.write("from %s.eodefault cimport *\n\n"%pv.eodefault["prefix"])
1604 f.write("cimport %s.eodefault as eodefault\n\n"%pv.eodefault["prefix"])
1605 del pv
1606
1566 for l in lines: 1607 for l in lines:
1567 f.write(l) 1608 f.write(l)
1568 f.close() 1609 f.close()
@@ -1595,7 +1636,8 @@ class XMLparser(object):
1595 exit(1) 1636 exit(1)
1596 1637
1597 lines = [] 1638 lines = []
1598 lines.append("from eodefault cimport *\n") 1639 #put it into pxd 12.12.12
1640 #lines.append("from eodefault cimport *\n")
1599 for k in lst: 1641 for k in lst:
1600 lines.append("include \"%s\""%self.objects[k].V.pxi.name) 1642 lines.append("include \"%s\""%self.objects[k].V.pxi.name)
1601 #FIXME adding filenames of include modules? 1643 #FIXME adding filenames of include modules?
diff --git a/eorepo/EoBase.xml b/eorepo/EoBase.xml
new file mode 100644
index 0000000..5829ced
--- /dev/null
+++ b/eorepo/EoBase.xml
@@ -0,0 +1,90 @@
1<?xml version="1.0" ?>
2<module name="Eo Base">
3 <parse_version num="1.0.1"/>
4 <include name="Eo.h"/>
5 <extern_function name="eo_base_class_get()" typename="Eo_Class*"/>
6 <class c_name="Eo Base" extensions="" get_function="eo_base_class_get" instantiateable="False" macro="EO_BASE_CLASS" parent="" type="EO_CLASS_TYPE_REGULAR_NO_INSTANT">
7 <op_id>
8 <base_id name="EO_BASE_BASE_ID"/>
9 <sub_id name="EO_BASE_SUB_ID_WREF_DEL"/>
10 <sub_id name="EO_BASE_SUB_ID_EVENT_GLOBAL_FREEZE"/>
11 <sub_id name="EO_BASE_SUB_ID_EVENT_CALLBACK_FORWARDER_DEL"/>
12 <sub_id name="EO_BASE_SUB_ID_EVENT_GLOBAL_THAW"/>
13 <sub_id name="EO_BASE_SUB_ID_EVENT_CALLBACK_DEL"/>
14 <sub_id name="EO_BASE_SUB_ID_EVENT_GLOBAL_FREEZE_GET"/>
15 <sub_id name="EO_BASE_SUB_ID_DATA_SET"/>
16 <sub_id name="EO_BASE_SUB_ID_EVENT_THAW"/>
17 <sub_id name="EO_BASE_SUB_ID_WREF_ADD"/>
18 <sub_id name="EO_BASE_SUB_ID_DESTRUCTOR"/>
19 <sub_id name="EO_BASE_SUB_ID_DATA_GET"/>
20 <sub_id name="EO_BASE_SUB_ID_DATA_DEL"/>
21 <sub_id name="EO_BASE_SUB_ID_CONSTRUCTOR"/>
22 <sub_id name="EO_BASE_SUB_ID_EVENT_CALLBACK_CALL"/>
23 <sub_id name="EO_BASE_SUB_ID_EVENT_FREEZE_GET"/>
24 <sub_id name="EO_BASE_SUB_ID_EVENT_FREEZE"/>
25 <sub_id name="EO_BASE_SUB_ID_EVENT_CALLBACK_PRIORITY_ADD"/>
26 <sub_id name="EO_BASE_SUB_ID_EVENT_CALLBACK_FORWARDER_ADD"/>
27 </op_id>
28 <events>
29 <event name="EO_EV_CALLBACK_ADD"/>
30 <event name="EO_EV_CALLBACK_DEL"/>
31 <event name="EO_EV_DEL"/>
32 </events>
33 <methods>
34 <method c_macro="eo_wref_del" name="wref_del" op_id="EO_BASE_SUB_ID_WREF_DEL">
35 <parameter c_typename="Eo**" direction="in,out" modifier="" name="wref" primary_type="Eo**"/>
36 </method>
37 <method c_macro="eo_event_global_freeze" name="event_global_freeze" op_id="EO_BASE_SUB_ID_EVENT_GLOBAL_FREEZE"/>
38 <method c_macro="eo_event_callback_forwarder_del" name="event_callback_forwarder_del" op_id="EO_BASE_SUB_ID_EVENT_CALLBACK_FORWARDER_DEL">
39 <parameter c_typename="Eo_Event_Description*" direction="in" modifier="const" name="desc" primary_type="Eo_Event_Description*"/>
40 <parameter c_typename="Eo*" direction="in" modifier="" name="new_obj" primary_type="Eo*"/>
41 </method>
42 <method c_macro="eo_event_global_thaw" name="event_global_thaw" op_id="EO_BASE_SUB_ID_EVENT_GLOBAL_THAW"/>
43 <method c_macro="eo_event_callback_del" name="event_callback_del" op_id="EO_BASE_SUB_ID_EVENT_CALLBACK_DEL">
44 <parameter c_typename="Eo_Event_Description*" direction="in" modifier="const" name="desc" primary_type="Eo_Event_Description*"/>
45 <parameter c_typename="Eo_Event_Cb" direction="in" modifier="" name="func" primary_type="Eo_Event_Cb"/>
46 <parameter c_typename="void*" direction="in" modifier="const" name="user_data" primary_type="void*"/>
47 </method>
48 <method c_macro="eo_event_global_freeze_get" name="event_global_freeze_get" op_id="EO_BASE_SUB_ID_EVENT_GLOBAL_FREEZE_GET">
49 <parameter c_typename="int*" direction="out" modifier="" name="fcount" primary_type="int*"/>
50 </method>
51 <method c_macro="eo_base_data_set" name="data_set" op_id="EO_BASE_SUB_ID_DATA_SET">
52 <parameter c_typename="char*" direction="in" modifier="const" name="key" primary_type="char*"/>
53 <parameter c_typename="void*" direction="in" modifier="const" name="data" primary_type="void*"/>
54 <parameter c_typename="eo_base_data_free_func" direction="in" modifier="" name="free_func" primary_type="eo_base_data_free_func"/>
55 </method>
56 <method c_macro="eo_event_thaw" name="event_thaw" op_id="EO_BASE_SUB_ID_EVENT_THAW"/>
57 <method c_macro="eo_wref_add" name="wref_add" op_id="EO_BASE_SUB_ID_WREF_ADD">
58 <parameter c_typename="Eo**" direction="in,out" modifier="" name="wref" primary_type="Eo**"/>
59 </method>
60 <method c_macro="eo_destructor" name="destructor" op_id="EO_BASE_SUB_ID_DESTRUCTOR"/>
61 <method c_macro="eo_base_data_get" name="data_get" op_id="EO_BASE_SUB_ID_DATA_GET">
62 <parameter c_typename="char*" direction="in" modifier="const" name="key" primary_type="char*"/>
63 <parameter c_typename="void**" direction="out" modifier="" name="data" primary_type="void**"/>
64 </method>
65 <method c_macro="eo_base_data_del" name="data_del" op_id="EO_BASE_SUB_ID_DATA_DEL">
66 <parameter c_typename="char*" direction="in" modifier="const" name="key" primary_type="char*"/>
67 </method>
68 <method c_macro="eo_constructor" name="constructor" op_id="EO_BASE_SUB_ID_CONSTRUCTOR"/>
69 <method c_macro="eo_event_callback_call" name="event_callback_call" op_id="EO_BASE_SUB_ID_EVENT_CALLBACK_CALL">
70 <parameter c_typename="Eo_Event_Description*" direction="in" modifier="const" name="desc" primary_type="Eo_Event_Description*"/>
71 <parameter c_typename="void*" direction="in" modifier="const" name="event_info" primary_type="void*"/>
72 <parameter c_typename="Eina_Bool*" direction="out" modifier="" name="aborted" primary_type="bool*"/>
73 </method>
74 <method c_macro="eo_event_freeze_get" name="event_freeze_get" op_id="EO_BASE_SUB_ID_EVENT_FREEZE_GET">
75 <parameter c_typename="int*" direction="out" modifier="" name="fcount" primary_type="int*"/>
76 </method>
77 <method c_macro="eo_event_freeze" name="event_freeze" op_id="EO_BASE_SUB_ID_EVENT_FREEZE"/>
78 <method c_macro="eo_event_callback_priority_add" name="event_callback_priority_add" op_id="EO_BASE_SUB_ID_EVENT_CALLBACK_PRIORITY_ADD">
79 <parameter c_typename="Eo_Event_Description*" direction="in" modifier="const" name="desc" primary_type="Eo_Event_Description*"/>
80 <parameter c_typename="Eo_Callback_Priority" direction="in" modifier="" name="priority" primary_type="short"/>
81 <parameter c_typename="Eo_Event_Cb" direction="in" modifier="" name="cb" primary_type="Eo_Event_Cb"/>
82 <parameter c_typename="void*" direction="in" modifier="const" name="data" primary_type="void*"/>
83 </method>
84 <method c_macro="eo_event_callback_forwarder_add" name="event_callback_forwarder_add" op_id="EO_BASE_SUB_ID_EVENT_CALLBACK_FORWARDER_ADD">
85 <parameter c_typename="Eo_Event_Description*" direction="in" modifier="const" name="desc" primary_type="Eo_Event_Description*"/>
86 <parameter c_typename="Eo*" direction="in" modifier="" name="new_obj" primary_type="Eo*"/>
87 </method>
88 </methods>
89 </class>
90</module>
diff --git a/eorepo/__init__.py b/eorepo/__init__.py
new file mode 100644
index 0000000..562b866
--- /dev/null
+++ b/eorepo/__init__.py
@@ -0,0 +1,3 @@
1import eodefault
2eodefault.init()
3
diff --git a/eorepo/eobase.c b/eorepo/eobase.c
new file mode 100644
index 0000000..182adea
--- /dev/null
+++ b/eorepo/eobase.c
@@ -0,0 +1,5268 @@
1/* Generated by Cython 0.17.2 on Thu Dec 13 13:41:17 2012 */
2
3#define PY_SSIZE_T_CLEAN
4#include "Python.h"
5#ifndef Py_PYTHON_H
6 #error Python headers needed to compile C extensions, please install development version of Python.
7#elif PY_VERSION_HEX < 0x02040000
8 #error Cython requires Python 2.4+.
9#else
10#include <stddef.h> /* For offsetof */
11#ifndef offsetof
12#define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
13#endif
14#if !defined(WIN32) && !defined(MS_WINDOWS)
15 #ifndef __stdcall
16 #define __stdcall
17 #endif
18 #ifndef __cdecl
19 #define __cdecl
20 #endif
21 #ifndef __fastcall
22 #define __fastcall
23 #endif
24#endif
25#ifndef DL_IMPORT
26 #define DL_IMPORT(t) t
27#endif
28#ifndef DL_EXPORT
29 #define DL_EXPORT(t) t
30#endif
31#ifndef PY_LONG_LONG
32 #define PY_LONG_LONG LONG_LONG
33#endif
34#ifndef Py_HUGE_VAL
35 #define Py_HUGE_VAL HUGE_VAL
36#endif
37#ifdef PYPY_VERSION
38#define CYTHON_COMPILING_IN_PYPY 1
39#define CYTHON_COMPILING_IN_CPYTHON 0
40#else
41#define CYTHON_COMPILING_IN_PYPY 0
42#define CYTHON_COMPILING_IN_CPYTHON 1
43#endif
44#if PY_VERSION_HEX < 0x02050000
45 typedef int Py_ssize_t;
46 #define PY_SSIZE_T_MAX INT_MAX
47 #define PY_SSIZE_T_MIN INT_MIN
48 #define PY_FORMAT_SIZE_T ""
49 #define CYTHON_FORMAT_SSIZE_T ""
50 #define PyInt_FromSsize_t(z) PyInt_FromLong(z)
51 #define PyInt_AsSsize_t(o) __Pyx_PyInt_AsInt(o)
52 #define PyNumber_Index(o) ((PyNumber_Check(o) && !PyFloat_Check(o)) ? PyNumber_Int(o) : \
53 (PyErr_Format(PyExc_TypeError, \
54 "expected index value, got %.200s", Py_TYPE(o)->tp_name), \
55 (PyObject*)0))
56 #define __Pyx_PyIndex_Check(o) (PyNumber_Check(o) && !PyFloat_Check(o) && \
57 !PyComplex_Check(o))
58 #define PyIndex_Check __Pyx_PyIndex_Check
59 #define PyErr_WarnEx(category, message, stacklevel) PyErr_Warn(category, message)
60 #define __PYX_BUILD_PY_SSIZE_T "i"
61#else
62 #define __PYX_BUILD_PY_SSIZE_T "n"
63 #define CYTHON_FORMAT_SSIZE_T "z"
64 #define __Pyx_PyIndex_Check PyIndex_Check
65#endif
66#if PY_VERSION_HEX < 0x02060000
67 #define Py_REFCNT(ob) (((PyObject*)(ob))->ob_refcnt)
68 #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
69 #define Py_SIZE(ob) (((PyVarObject*)(ob))->ob_size)
70 #define PyVarObject_HEAD_INIT(type, size) \
71 PyObject_HEAD_INIT(type) size,
72 #define PyType_Modified(t)
73 typedef struct {
74 void *buf;
75 PyObject *obj;
76 Py_ssize_t len;
77 Py_ssize_t itemsize;
78 int readonly;
79 int ndim;
80 char *format;
81 Py_ssize_t *shape;
82 Py_ssize_t *strides;
83 Py_ssize_t *suboffsets;
84 void *internal;
85 } Py_buffer;
86 #define PyBUF_SIMPLE 0
87 #define PyBUF_WRITABLE 0x0001
88 #define PyBUF_FORMAT 0x0004
89 #define PyBUF_ND 0x0008
90 #define PyBUF_STRIDES (0x0010 | PyBUF_ND)
91 #define PyBUF_C_CONTIGUOUS (0x0020 | PyBUF_STRIDES)
92 #define PyBUF_F_CONTIGUOUS (0x0040 | PyBUF_STRIDES)
93 #define PyBUF_ANY_CONTIGUOUS (0x0080 | PyBUF_STRIDES)
94 #define PyBUF_INDIRECT (0x0100 | PyBUF_STRIDES)
95 #define PyBUF_RECORDS (PyBUF_STRIDES | PyBUF_FORMAT | PyBUF_WRITABLE)
96 #define PyBUF_FULL (PyBUF_INDIRECT | PyBUF_FORMAT | PyBUF_WRITABLE)
97 typedef int (*getbufferproc)(PyObject *, Py_buffer *, int);
98 typedef void (*releasebufferproc)(PyObject *, Py_buffer *);
99#endif
100#if PY_MAJOR_VERSION < 3
101 #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
102 #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) \
103 PyCode_New(a, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
104#else
105 #define __Pyx_BUILTIN_MODULE_NAME "builtins"
106 #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) \
107 PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
108#endif
109#if PY_MAJOR_VERSION < 3 && PY_MINOR_VERSION < 6
110 #define PyUnicode_FromString(s) PyUnicode_Decode(s, strlen(s), "UTF-8", "strict")
111#endif
112#if PY_MAJOR_VERSION >= 3
113 #define Py_TPFLAGS_CHECKTYPES 0
114 #define Py_TPFLAGS_HAVE_INDEX 0
115#endif
116#if (PY_VERSION_HEX < 0x02060000) || (PY_MAJOR_VERSION >= 3)
117 #define Py_TPFLAGS_HAVE_NEWBUFFER 0
118#endif
119#if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
120 #define CYTHON_PEP393_ENABLED 1
121 #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ? \
122 0 : _PyUnicode_Ready((PyObject *)(op)))
123 #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u)
124 #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
125 #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i)
126#else
127 #define CYTHON_PEP393_ENABLED 0
128 #define __Pyx_PyUnicode_READY(op) (0)
129 #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u)
130 #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
131 #define __Pyx_PyUnicode_READ(k, d, i) ((k=k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
132#endif
133#if PY_MAJOR_VERSION >= 3
134 #define PyBaseString_Type PyUnicode_Type
135 #define PyStringObject PyUnicodeObject
136 #define PyString_Type PyUnicode_Type
137 #define PyString_Check PyUnicode_Check
138 #define PyString_CheckExact PyUnicode_CheckExact
139#endif
140#if PY_VERSION_HEX < 0x02060000
141 #define PyBytesObject PyStringObject
142 #define PyBytes_Type PyString_Type
143 #define PyBytes_Check PyString_Check
144 #define PyBytes_CheckExact PyString_CheckExact
145 #define PyBytes_FromString PyString_FromString
146 #define PyBytes_FromStringAndSize PyString_FromStringAndSize
147 #define PyBytes_FromFormat PyString_FromFormat
148 #define PyBytes_DecodeEscape PyString_DecodeEscape
149 #define PyBytes_AsString PyString_AsString
150 #define PyBytes_AsStringAndSize PyString_AsStringAndSize
151 #define PyBytes_Size PyString_Size
152 #define PyBytes_AS_STRING PyString_AS_STRING
153 #define PyBytes_GET_SIZE PyString_GET_SIZE
154 #define PyBytes_Repr PyString_Repr
155 #define PyBytes_Concat PyString_Concat
156 #define PyBytes_ConcatAndDel PyString_ConcatAndDel
157#endif
158#if PY_VERSION_HEX < 0x02060000
159 #define PySet_Check(obj) PyObject_TypeCheck(obj, &PySet_Type)
160 #define PyFrozenSet_Check(obj) PyObject_TypeCheck(obj, &PyFrozenSet_Type)
161#endif
162#ifndef PySet_CheckExact
163 #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type)
164#endif
165#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
166#if PY_MAJOR_VERSION >= 3
167 #define PyIntObject PyLongObject
168 #define PyInt_Type PyLong_Type
169 #define PyInt_Check(op) PyLong_Check(op)
170 #define PyInt_CheckExact(op) PyLong_CheckExact(op)
171 #define PyInt_FromString PyLong_FromString
172 #define PyInt_FromUnicode PyLong_FromUnicode
173 #define PyInt_FromLong PyLong_FromLong
174 #define PyInt_FromSize_t PyLong_FromSize_t
175 #define PyInt_FromSsize_t PyLong_FromSsize_t
176 #define PyInt_AsLong PyLong_AsLong
177 #define PyInt_AS_LONG PyLong_AS_LONG
178 #define PyInt_AsSsize_t PyLong_AsSsize_t
179 #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask
180 #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
181#endif
182#if PY_MAJOR_VERSION >= 3
183 #define PyBoolObject PyLongObject
184#endif
185#if PY_VERSION_HEX < 0x03020000
186 typedef long Py_hash_t;
187 #define __Pyx_PyInt_FromHash_t PyInt_FromLong
188 #define __Pyx_PyInt_AsHash_t PyInt_AsLong
189#else
190 #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
191 #define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t
192#endif
193#if (PY_MAJOR_VERSION < 3) || (PY_VERSION_HEX >= 0x03010300)
194 #define __Pyx_PySequence_GetSlice(obj, a, b) PySequence_GetSlice(obj, a, b)
195 #define __Pyx_PySequence_SetSlice(obj, a, b, value) PySequence_SetSlice(obj, a, b, value)
196 #define __Pyx_PySequence_DelSlice(obj, a, b) PySequence_DelSlice(obj, a, b)
197#else
198 #define __Pyx_PySequence_GetSlice(obj, a, b) (unlikely(!(obj)) ? \
199 (PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), (PyObject*)0) : \
200 (likely((obj)->ob_type->tp_as_mapping) ? (PySequence_GetSlice(obj, a, b)) : \
201 (PyErr_Format(PyExc_TypeError, "'%.200s' object is unsliceable", (obj)->ob_type->tp_name), (PyObject*)0)))
202 #define __Pyx_PySequence_SetSlice(obj, a, b, value) (unlikely(!(obj)) ? \
203 (PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), -1) : \
204 (likely((obj)->ob_type->tp_as_mapping) ? (PySequence_SetSlice(obj, a, b, value)) : \
205 (PyErr_Format(PyExc_TypeError, "'%.200s' object doesn't support slice assignment", (obj)->ob_type->tp_name), -1)))
206 #define __Pyx_PySequence_DelSlice(obj, a, b) (unlikely(!(obj)) ? \
207 (PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), -1) : \
208 (likely((obj)->ob_type->tp_as_mapping) ? (PySequence_DelSlice(obj, a, b)) : \
209 (PyErr_Format(PyExc_TypeError, "'%.200s' object doesn't support slice deletion", (obj)->ob_type->tp_name), -1)))
210#endif
211#if PY_MAJOR_VERSION >= 3
212 #define PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func))
213#endif
214#if PY_VERSION_HEX < 0x02050000
215 #define __Pyx_GetAttrString(o,n) PyObject_GetAttrString((o),((char *)(n)))
216 #define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),((char *)(n)),(a))
217 #define __Pyx_DelAttrString(o,n) PyObject_DelAttrString((o),((char *)(n)))
218#else
219 #define __Pyx_GetAttrString(o,n) PyObject_GetAttrString((o),(n))
220 #define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),(n),(a))
221 #define __Pyx_DelAttrString(o,n) PyObject_DelAttrString((o),(n))
222#endif
223#if PY_VERSION_HEX < 0x02050000
224 #define __Pyx_NAMESTR(n) ((char *)(n))
225 #define __Pyx_DOCSTR(n) ((char *)(n))
226#else
227 #define __Pyx_NAMESTR(n) (n)
228 #define __Pyx_DOCSTR(n) (n)
229#endif
230
231
232#if PY_MAJOR_VERSION >= 3
233 #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)
234 #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y)
235#else
236 #define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y)
237 #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y)
238#endif
239
240#ifndef __PYX_EXTERN_C
241 #ifdef __cplusplus
242 #define __PYX_EXTERN_C extern "C"
243 #else
244 #define __PYX_EXTERN_C extern
245 #endif
246#endif
247
248#if defined(WIN32) || defined(MS_WINDOWS)
249#define _USE_MATH_DEFINES
250#endif
251#include <math.h>
252#define __PYX_HAVE__eorepo__eobase
253#define __PYX_HAVE_API__eorepo__eobase
254#include "Eina.h"
255#include "Eo.h"
256#include "stdio.h"
257#include "pythread.h"
258#ifdef _OPENMP
259#include <omp.h>
260#endif /* _OPENMP */
261
262#ifdef PYREX_WITHOUT_ASSERTIONS
263#define CYTHON_WITHOUT_ASSERTIONS
264#endif
265
266
267/* inline attribute */
268#ifndef CYTHON_INLINE
269 #if defined(__GNUC__)
270 #define CYTHON_INLINE __inline__
271 #elif defined(_MSC_VER)
272 #define CYTHON_INLINE __inline
273 #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
274 #define CYTHON_INLINE inline
275 #else
276 #define CYTHON_INLINE
277 #endif
278#endif
279
280/* unused attribute */
281#ifndef CYTHON_UNUSED
282# if defined(__GNUC__)
283# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
284# define CYTHON_UNUSED __attribute__ ((__unused__))
285# else
286# define CYTHON_UNUSED
287# endif
288# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
289# define CYTHON_UNUSED __attribute__ ((__unused__))
290# else
291# define CYTHON_UNUSED
292# endif
293#endif
294
295typedef struct {PyObject **p; char *s; const long n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; /*proto*/
296
297
298/* Type Conversion Predeclarations */
299
300#define __Pyx_PyBytes_FromUString(s) PyBytes_FromString((char*)s)
301#define __Pyx_PyBytes_AsUString(s) ((unsigned char*) PyBytes_AsString(s))
302
303#define __Pyx_Owned_Py_None(b) (Py_INCREF(Py_None), Py_None)
304#define __Pyx_PyBool_FromLong(b) ((b) ? (Py_INCREF(Py_True), Py_True) : (Py_INCREF(Py_False), Py_False))
305static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
306static CYTHON_INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x);
307
308static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
309static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
310static CYTHON_INLINE size_t __Pyx_PyInt_AsSize_t(PyObject*);
311
312#if CYTHON_COMPILING_IN_CPYTHON
313#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
314#else
315#define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
316#endif
317#define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
318
319#ifdef __GNUC__
320 /* Test for GCC > 2.95 */
321 #if __GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95))
322 #define likely(x) __builtin_expect(!!(x), 1)
323 #define unlikely(x) __builtin_expect(!!(x), 0)
324 #else /* __GNUC__ > 2 ... */
325 #define likely(x) (x)
326 #define unlikely(x) (x)
327 #endif /* __GNUC__ > 2 ... */
328#else /* __GNUC__ */
329 #define likely(x) (x)
330 #define unlikely(x) (x)
331#endif /* __GNUC__ */
332
333static PyObject *__pyx_m;
334static PyObject *__pyx_b;
335static PyObject *__pyx_empty_tuple;
336static PyObject *__pyx_empty_bytes;
337static int __pyx_lineno;
338static int __pyx_clineno = 0;
339static const char * __pyx_cfilenm= __FILE__;
340static const char *__pyx_filename;
341
342
343static const char *__pyx_f[] = {
344 "eobase.pxi",
345 "eobase.pyx",
346 "eodefault.pxd",
347 "type.pxd",
348 "bool.pxd",
349 "complex.pxd",
350};
351
352/*--- Type declarations ---*/
353struct __pyx_obj_6eorepo_9eodefault_EoDefault;
354
355/* "eorepo/eodefault.pxd":73
356 *
357 *
358 * cdef class EoDefault: # <<<<<<<<<<<<<<
359 * cdef Eo *eo
360 * cdef object name
361 */
362struct __pyx_obj_6eorepo_9eodefault_EoDefault {
363 PyObject_HEAD
364 struct __pyx_vtabstruct_6eorepo_9eodefault_EoDefault *__pyx_vtab;
365 Eo *eo;
366 PyObject *name;
367};
368
369
370
371struct __pyx_vtabstruct_6eorepo_9eodefault_EoDefault {
372 int (*print_func_name)(struct __pyx_obj_6eorepo_9eodefault_EoDefault *, PyObject *);
373 int (*_eo_instance_set)(struct __pyx_obj_6eorepo_9eodefault_EoDefault *, Eo *);
374 PyObject *(*_eo_instance_set2)(struct __pyx_obj_6eorepo_9eodefault_EoDefault *, unsigned PY_LONG_LONG, struct __pyx_obj_6eorepo_9eodefault_EoDefault *, int __pyx_skip_dispatch);
375};
376static struct __pyx_vtabstruct_6eorepo_9eodefault_EoDefault *__pyx_vtabptr_6eorepo_9eodefault_EoDefault;
377#ifndef CYTHON_REFNANNY
378 #define CYTHON_REFNANNY 0
379#endif
380#if CYTHON_REFNANNY
381 typedef struct {
382 void (*INCREF)(void*, PyObject*, int);
383 void (*DECREF)(void*, PyObject*, int);
384 void (*GOTREF)(void*, PyObject*, int);
385 void (*GIVEREF)(void*, PyObject*, int);
386 void* (*SetupContext)(const char*, int, const char*);
387 void (*FinishContext)(void**);
388 } __Pyx_RefNannyAPIStruct;
389 static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
390 static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname); /*proto*/
391 #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
392#ifdef WITH_THREAD
393 #define __Pyx_RefNannySetupContext(name, acquire_gil) \
394 if (acquire_gil) { \
395 PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure(); \
396 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__); \
397 PyGILState_Release(__pyx_gilstate_save); \
398 } else { \
399 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__); \
400 }
401#else
402 #define __Pyx_RefNannySetupContext(name, acquire_gil) \
403 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
404#endif
405 #define __Pyx_RefNannyFinishContext() \
406 __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
407 #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
408 #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
409 #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
410 #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
411 #define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
412 #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
413 #define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
414 #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
415#else
416 #define __Pyx_RefNannyDeclarations
417 #define __Pyx_RefNannySetupContext(name, acquire_gil)
418 #define __Pyx_RefNannyFinishContext()
419 #define __Pyx_INCREF(r) Py_INCREF(r)
420 #define __Pyx_DECREF(r) Py_DECREF(r)
421 #define __Pyx_GOTREF(r)
422 #define __Pyx_GIVEREF(r)
423 #define __Pyx_XINCREF(r) Py_XINCREF(r)
424 #define __Pyx_XDECREF(r) Py_XDECREF(r)
425 #define __Pyx_XGOTREF(r)
426 #define __Pyx_XGIVEREF(r)
427#endif /* CYTHON_REFNANNY */
428#define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
429#define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)
430
431static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name); /*proto*/
432
433static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); /*proto*/
434
435static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
436 Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); /*proto*/
437
438static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name); /*proto*/
439
440static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[], \
441 PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, \
442 const char* function_name); /*proto*/
443
444static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed,
445 const char *name, int exact); /*proto*/
446
447static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
448 PyObject *r;
449 if (!j) return NULL;
450 r = PyObject_GetItem(o, j);
451 Py_DECREF(j);
452 return r;
453}
454#define __Pyx_GetItemInt_List(o, i, size, to_py_func) (((size) <= sizeof(Py_ssize_t)) ? \
455 __Pyx_GetItemInt_List_Fast(o, i) : \
456 __Pyx_GetItemInt_Generic(o, to_py_func(i)))
457static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i) {
458#if CYTHON_COMPILING_IN_CPYTHON
459 if (likely((0 <= i) & (i < PyList_GET_SIZE(o)))) {
460 PyObject *r = PyList_GET_ITEM(o, i);
461 Py_INCREF(r);
462 return r;
463 }
464 else if ((-PyList_GET_SIZE(o) <= i) & (i < 0)) {
465 PyObject *r = PyList_GET_ITEM(o, PyList_GET_SIZE(o) + i);
466 Py_INCREF(r);
467 return r;
468 }
469 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
470#else
471 return PySequence_GetItem(o, i);
472#endif
473}
474#define __Pyx_GetItemInt_Tuple(o, i, size, to_py_func) (((size) <= sizeof(Py_ssize_t)) ? \
475 __Pyx_GetItemInt_Tuple_Fast(o, i) : \
476 __Pyx_GetItemInt_Generic(o, to_py_func(i)))
477static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i) {
478#if CYTHON_COMPILING_IN_CPYTHON
479 if (likely((0 <= i) & (i < PyTuple_GET_SIZE(o)))) {
480 PyObject *r = PyTuple_GET_ITEM(o, i);
481 Py_INCREF(r);
482 return r;
483 }
484 else if ((-PyTuple_GET_SIZE(o) <= i) & (i < 0)) {
485 PyObject *r = PyTuple_GET_ITEM(o, PyTuple_GET_SIZE(o) + i);
486 Py_INCREF(r);
487 return r;
488 }
489 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
490#else
491 return PySequence_GetItem(o, i);
492#endif
493}
494#define __Pyx_GetItemInt(o, i, size, to_py_func) (((size) <= sizeof(Py_ssize_t)) ? \
495 __Pyx_GetItemInt_Fast(o, i) : \
496 __Pyx_GetItemInt_Generic(o, to_py_func(i)))
497static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i) {
498#if CYTHON_COMPILING_IN_CPYTHON
499 if (PyList_CheckExact(o)) {
500 Py_ssize_t n = (likely(i >= 0)) ? i : i + PyList_GET_SIZE(o);
501 if (likely((n >= 0) & (n < PyList_GET_SIZE(o)))) {
502 PyObject *r = PyList_GET_ITEM(o, n);
503 Py_INCREF(r);
504 return r;
505 }
506 }
507 else if (PyTuple_CheckExact(o)) {
508 Py_ssize_t n = (likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o);
509 if (likely((n >= 0) & (n < PyTuple_GET_SIZE(o)))) {
510 PyObject *r = PyTuple_GET_ITEM(o, n);
511 Py_INCREF(r);
512 return r;
513 }
514 } else { /* inlined PySequence_GetItem() */
515 PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence;
516 if (likely(m && m->sq_item)) {
517 if (unlikely(i < 0) && likely(m->sq_length)) {
518 Py_ssize_t l = m->sq_length(o);
519 if (unlikely(l < 0)) return NULL;
520 i += l;
521 }
522 return m->sq_item(o, i);
523 }
524 }
525#else
526 if (PySequence_Check(o)) {
527 return PySequence_GetItem(o, i);
528 }
529#endif
530 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
531}
532
533#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
534#define __Pyx_PyCallable_Check(obj) ((obj)->ob_type->tp_call != NULL)
535#else
536#define __Pyx_PyCallable_Check(obj) PyCallable_Check(obj)
537#endif
538
539static CYTHON_INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
540static CYTHON_INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb); /*proto*/
541
542static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause); /*proto*/
543
544static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, long level); /*proto*/
545
546static CYTHON_INLINE void __Pyx_RaiseImportError(PyObject *name);
547
548static PyObject *__Pyx_FindPy2Metaclass(PyObject *bases); /*proto*/
549
550static PyObject *__Pyx_CreateClass(PyObject *bases, PyObject *dict, PyObject *name,
551 PyObject *modname); /*proto*/
552
553#define __Pyx_CyFunction_USED 1
554#include <structmember.h>
555#define __Pyx_CYFUNCTION_STATICMETHOD 0x01
556#define __Pyx_CYFUNCTION_CLASSMETHOD 0x02
557#define __Pyx_CYFUNCTION_CCLASS 0x04
558#define __Pyx_CyFunction_GetClosure(f) \
559 (((__pyx_CyFunctionObject *) (f))->func_closure)
560#define __Pyx_CyFunction_GetClassObj(f) \
561 (((__pyx_CyFunctionObject *) (f))->func_classobj)
562#define __Pyx_CyFunction_Defaults(type, f) \
563 ((type *)(((__pyx_CyFunctionObject *) (f))->defaults))
564#define __Pyx_CyFunction_SetDefaultsGetter(f, g) \
565 ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g)
566typedef struct {
567 PyCFunctionObject func;
568 int flags;
569 PyObject *func_dict;
570 PyObject *func_weakreflist;
571 PyObject *func_name;
572 PyObject *func_doc;
573 PyObject *func_code;
574 PyObject *func_closure;
575 PyObject *func_classobj; /* No-args super() class cell */
576 void *defaults;
577 int defaults_pyobjects;
578 PyObject *defaults_tuple; /* Const defaults tuple */
579 PyObject *(*defaults_getter)(PyObject *);
580} __pyx_CyFunctionObject;
581static PyTypeObject *__pyx_CyFunctionType = 0;
582#define __Pyx_CyFunction_NewEx(ml, flags, self, module, code) \
583 __Pyx_CyFunction_New(__pyx_CyFunctionType, ml, flags, self, module, code)
584static PyObject *__Pyx_CyFunction_New(PyTypeObject *,
585 PyMethodDef *ml, int flags,
586 PyObject *self, PyObject *module,
587 PyObject* code);
588static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *m,
589 size_t size,
590 int pyobjects);
591static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m,
592 PyObject *tuple);
593static int __Pyx_CyFunction_init(void);
594
595static int __Pyx_Print(PyObject*, PyObject *, int); /*proto*/
596#if CYTHON_COMPILING_IN_PYPY || PY_MAJOR_VERSION >= 3
597static PyObject* __pyx_print = 0;
598static PyObject* __pyx_print_kwargs = 0;
599#endif
600
601static int __Pyx_PrintOne(PyObject* stream, PyObject *o); /*proto*/
602
603static CYTHON_INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject *);
604
605static CYTHON_INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject *);
606
607static CYTHON_INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject *);
608
609static CYTHON_INLINE char __Pyx_PyInt_AsChar(PyObject *);
610
611static CYTHON_INLINE short __Pyx_PyInt_AsShort(PyObject *);
612
613static CYTHON_INLINE int __Pyx_PyInt_AsInt(PyObject *);
614
615static CYTHON_INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject *);
616
617static CYTHON_INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject *);
618
619static CYTHON_INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject *);
620
621static CYTHON_INLINE int __Pyx_PyInt_AsLongDouble(PyObject *);
622
623static CYTHON_INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject *);
624
625static CYTHON_INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject *);
626
627static CYTHON_INLINE long __Pyx_PyInt_AsLong(PyObject *);
628
629static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject *);
630
631static CYTHON_INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject *);
632
633static CYTHON_INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject *);
634
635static int __Pyx_check_binary_version(void);
636
637#if !defined(__Pyx_PyIdentifier_FromString)
638#if PY_MAJOR_VERSION < 3
639 #define __Pyx_PyIdentifier_FromString(s) PyString_FromString(s)
640#else
641 #define __Pyx_PyIdentifier_FromString(s) PyUnicode_FromString(s)
642#endif
643#endif
644
645static PyObject *__Pyx_ImportModule(const char *name); /*proto*/
646
647static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name, size_t size, int strict); /*proto*/
648
649static void* __Pyx_GetVtable(PyObject *dict); /*proto*/
650
651static int __Pyx_ImportFunction(PyObject *module, const char *funcname, void (**f)(void), const char *sig); /*proto*/
652
653typedef struct {
654 int code_line;
655 PyCodeObject* code_object;
656} __Pyx_CodeObjectCacheEntry;
657struct __Pyx_CodeObjectCache {
658 int count;
659 int max_count;
660 __Pyx_CodeObjectCacheEntry* entries;
661};
662static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
663static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
664static PyCodeObject *__pyx_find_code_object(int code_line);
665static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object);
666
667static void __Pyx_AddTraceback(const char *funcname, int c_line,
668 int py_line, const char *filename); /*proto*/
669
670static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/
671
672
673/* Module declarations from 'eorepo.eodefault' */
674static PyTypeObject *__pyx_ptype_6eorepo_9eodefault_EoDefault = 0;
675static Eo *(*__pyx_f_6eorepo_9eodefault__eo_instance_get)(struct __pyx_obj_6eorepo_9eodefault_EoDefault *); /*proto*/
676static Eina_Bool (*__pyx_f_6eorepo_9eodefault__object_callback)(void *, Eo *, Eo_Event_Description *, void *); /*proto*/
677
678/* Module declarations from 'cpython.version' */
679
680/* Module declarations from 'cpython.ref' */
681
682/* Module declarations from 'cpython.exc' */
683
684/* Module declarations from 'cpython.module' */
685
686/* Module declarations from 'cpython.mem' */
687
688/* Module declarations from 'cpython.tuple' */
689
690/* Module declarations from 'cpython.list' */
691
692/* Module declarations from 'libc.stdio' */
693
694/* Module declarations from 'cpython.object' */
695
696/* Module declarations from 'cpython.sequence' */
697
698/* Module declarations from 'cpython.mapping' */
699
700/* Module declarations from 'cpython.iterator' */
701
702/* Module declarations from '__builtin__' */
703
704/* Module declarations from 'cpython.type' */
705static PyTypeObject *__pyx_ptype_7cpython_4type_type = 0;
706
707/* Module declarations from 'cpython.number' */
708
709/* Module declarations from 'cpython.int' */
710
711/* Module declarations from '__builtin__' */
712
713/* Module declarations from 'cpython.bool' */
714static PyTypeObject *__pyx_ptype_7cpython_4bool_bool = 0;
715
716/* Module declarations from 'cpython.long' */
717
718/* Module declarations from 'cpython.float' */
719
720/* Module declarations from '__builtin__' */
721
722/* Module declarations from 'cpython.complex' */
723static PyTypeObject *__pyx_ptype_7cpython_7complex_complex = 0;
724
725/* Module declarations from 'cpython.string' */
726
727/* Module declarations from 'cpython.unicode' */
728
729/* Module declarations from 'cpython.dict' */
730
731/* Module declarations from 'cpython.instance' */
732
733/* Module declarations from 'cpython.function' */
734
735/* Module declarations from 'cpython.method' */
736
737/* Module declarations from 'cpython.weakref' */
738
739/* Module declarations from 'cpython.getargs' */
740
741/* Module declarations from 'cpython.pythread' */
742
743/* Module declarations from 'cpython.pystate' */
744
745/* Module declarations from 'cpython.cobject' */
746
747/* Module declarations from 'cpython.oldbuffer' */
748
749/* Module declarations from 'cpython.set' */
750
751/* Module declarations from 'cpython.buffer' */
752
753/* Module declarations from 'cpython.bytes' */
754
755/* Module declarations from 'cpython.pycapsule' */
756
757/* Module declarations from 'cpython' */
758
759/* Module declarations from 'eorepo.eobase' */
760static int __pyx_f_6eorepo_6eobase_eobase_sub_id(int); /*proto*/
761#define __Pyx_MODULE_NAME "eorepo.eobase"
762int __pyx_module_is_main_eorepo__eobase = 0;
763
764/* Implementation of 'eorepo.eobase' */
765static PyObject *__pyx_builtin_staticmethod;
766static PyObject *__pyx_builtin_exit;
767static PyObject *__pyx_builtin_TypeError;
768static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_event_thaw(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
769static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_2event_freeze(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
770static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_4__init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, CYTHON_UNUSED struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_parent); /* proto */
771static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_6event_global_freeze_get(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
772static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_8event_global_freeze(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
773static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_10data_get(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v__key); /* proto */
774static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_12event_callback_del(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, long __pyx_v__desc, PyObject *__pyx_v__func); /* proto */
775static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_14event_freeze_get(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
776static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_16event_global_thaw(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
777static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_18data_del(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v__key); /* proto */
778static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_20event_callback_call(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, long __pyx_v__desc, PyObject *__pyx_v__event_info); /* proto */
779static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_22event_callback_priority_add(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, long __pyx_v__desc, int __pyx_v__priority, PyObject *__pyx_v__cb); /* proto */
780static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_24data_set(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v__key, PyObject *__pyx_v__data); /* proto */
781static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_26_data_set(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v__key, PyObject *__pyx_v__data); /* proto */
782static char __pyx_k_1[] = "Class '%s' is not instantiate-able. Aborting.";
783static char __pyx_k_3[] = "func must be callable";
784static char __pyx_k_5[] = "eorepo.eodefault";
785static char __pyx_k_8[] = "/home/yakov/eo_bindings/eorepo/eobase.pxi";
786static char __pyx_k_9[] = "eorepo.eobase";
787static char __pyx_k_16[] = "event_global_freeze_get";
788static char __pyx_k_31[] = "event_callback_priority_add";
789static char __pyx_k__cb[] = "cb";
790static char __pyx_k__DEL[] = "DEL";
791static char __pyx_k___cb[] = "_cb";
792static char __pyx_k__key[] = "key";
793static char __pyx_k___key[] = "_key";
794static char __pyx_k__data[] = "data";
795static char __pyx_k__desc[] = "desc";
796static char __pyx_k__exit[] = "exit";
797static char __pyx_k__func[] = "func";
798static char __pyx_k__self[] = "self";
799static char __pyx_k___data[] = "_data";
800static char __pyx_k___desc[] = "_desc";
801static char __pyx_k___func[] = "_func";
802static char __pyx_k__data_[] = "data_";
803static char __pyx_k__EoBase[] = "EoBase";
804static char __pyx_k__fcount[] = "fcount";
805static char __pyx_k__parent[] = "parent";
806static char __pyx_k__aborted[] = "aborted";
807static char __pyx_k__fcount_[] = "fcount_";
808static char __pyx_k____init__[] = "__init__";
809static char __pyx_k____main__[] = "__main__";
810static char __pyx_k____name__[] = "__name__";
811static char __pyx_k____test__[] = "__test__";
812static char __pyx_k__aborted_[] = "aborted_";
813static char __pyx_k__data_del[] = "data_del";
814static char __pyx_k__data_get[] = "data_get";
815static char __pyx_k__data_set[] = "data_set";
816static char __pyx_k__EoDefault[] = "EoDefault";
817static char __pyx_k__TypeError[] = "TypeError";
818static char __pyx_k____class__[] = "__class__";
819static char __pyx_k___data_set[] = "_data_set";
820static char __pyx_k___priority[] = "_priority";
821static char __pyx_k__eodefault[] = "eodefault";
822static char __pyx_k__event_info[] = "event_info";
823static char __pyx_k__event_thaw[] = "event_thaw";
824static char __pyx_k___event_info[] = "_event_info";
825static char __pyx_k__CALLBACK_ADD[] = "CALLBACK_ADD";
826static char __pyx_k__CALLBACK_DEL[] = "CALLBACK_DEL";
827static char __pyx_k__event_freeze[] = "event_freeze";
828static char __pyx_k__staticmethod[] = "staticmethod";
829static char __pyx_k__pytext_to_utf8[] = "pytext_to_utf8";
830static char __pyx_k__instantiateable[] = "instantiateable";
831static char __pyx_k__event_freeze_get[] = "event_freeze_get";
832static char __pyx_k__event_global_thaw[] = "event_global_thaw";
833static char __pyx_k__event_callback_del[] = "event_callback_del";
834static char __pyx_k__event_callback_call[] = "event_callback_call";
835static char __pyx_k__event_global_freeze[] = "event_global_freeze";
836static PyObject *__pyx_kp_s_1;
837static PyObject *__pyx_n_s_16;
838static PyObject *__pyx_kp_s_3;
839static PyObject *__pyx_n_s_31;
840static PyObject *__pyx_n_s_5;
841static PyObject *__pyx_kp_s_8;
842static PyObject *__pyx_n_s_9;
843static PyObject *__pyx_n_s__CALLBACK_ADD;
844static PyObject *__pyx_n_s__CALLBACK_DEL;
845static PyObject *__pyx_n_s__DEL;
846static PyObject *__pyx_n_s__EoBase;
847static PyObject *__pyx_n_s__EoDefault;
848static PyObject *__pyx_n_s__TypeError;
849static PyObject *__pyx_n_s____class__;
850static PyObject *__pyx_n_s____init__;
851static PyObject *__pyx_n_s____main__;
852static PyObject *__pyx_n_s____name__;
853static PyObject *__pyx_n_s____test__;
854static PyObject *__pyx_n_s___cb;
855static PyObject *__pyx_n_s___data;
856static PyObject *__pyx_n_s___data_set;
857static PyObject *__pyx_n_s___desc;
858static PyObject *__pyx_n_s___event_info;
859static PyObject *__pyx_n_s___func;
860static PyObject *__pyx_n_s___key;
861static PyObject *__pyx_n_s___priority;
862static PyObject *__pyx_n_s__aborted;
863static PyObject *__pyx_n_s__aborted_;
864static PyObject *__pyx_n_s__cb;
865static PyObject *__pyx_n_s__data;
866static PyObject *__pyx_n_s__data_;
867static PyObject *__pyx_n_s__data_del;
868static PyObject *__pyx_n_s__data_get;
869static PyObject *__pyx_n_s__data_set;
870static PyObject *__pyx_n_s__desc;
871static PyObject *__pyx_n_s__eodefault;
872static PyObject *__pyx_n_s__event_callback_call;
873static PyObject *__pyx_n_s__event_callback_del;
874static PyObject *__pyx_n_s__event_freeze;
875static PyObject *__pyx_n_s__event_freeze_get;
876static PyObject *__pyx_n_s__event_global_freeze;
877static PyObject *__pyx_n_s__event_global_thaw;
878static PyObject *__pyx_n_s__event_info;
879static PyObject *__pyx_n_s__event_thaw;
880static PyObject *__pyx_n_s__exit;
881static PyObject *__pyx_n_s__fcount;
882static PyObject *__pyx_n_s__fcount_;
883static PyObject *__pyx_n_s__func;
884static PyObject *__pyx_n_s__instantiateable;
885static PyObject *__pyx_n_s__key;
886static PyObject *__pyx_n_s__parent;
887static PyObject *__pyx_n_s__pytext_to_utf8;
888static PyObject *__pyx_n_s__self;
889static PyObject *__pyx_n_s__staticmethod;
890static PyObject *__pyx_int_1;
891static PyObject *__pyx_k_tuple_2;
892static PyObject *__pyx_k_tuple_4;
893static PyObject *__pyx_k_tuple_6;
894static PyObject *__pyx_k_tuple_10;
895static PyObject *__pyx_k_tuple_12;
896static PyObject *__pyx_k_tuple_14;
897static PyObject *__pyx_k_tuple_18;
898static PyObject *__pyx_k_tuple_20;
899static PyObject *__pyx_k_tuple_22;
900static PyObject *__pyx_k_tuple_25;
901static PyObject *__pyx_k_tuple_27;
902static PyObject *__pyx_k_tuple_29;
903static PyObject *__pyx_k_tuple_32;
904static PyObject *__pyx_k_tuple_34;
905static PyObject *__pyx_k_codeobj_7;
906static PyObject *__pyx_k_codeobj_11;
907static PyObject *__pyx_k_codeobj_13;
908static PyObject *__pyx_k_codeobj_15;
909static PyObject *__pyx_k_codeobj_17;
910static PyObject *__pyx_k_codeobj_19;
911static PyObject *__pyx_k_codeobj_21;
912static PyObject *__pyx_k_codeobj_23;
913static PyObject *__pyx_k_codeobj_24;
914static PyObject *__pyx_k_codeobj_26;
915static PyObject *__pyx_k_codeobj_28;
916static PyObject *__pyx_k_codeobj_30;
917static PyObject *__pyx_k_codeobj_33;
918static PyObject *__pyx_k_codeobj_35;
919
920/* "/home/yakov/eo_bindings/eorepo/eobase.pxi":14
921 * from eorepo.eodefault import pytext_to_utf8
922 *
923 * cdef int eobase_sub_id(int sub_id): # <<<<<<<<<<<<<<
924 * return eobase.EO_BASE_BASE_ID + sub_id
925 *
926 */
927
928static int __pyx_f_6eorepo_6eobase_eobase_sub_id(int __pyx_v_sub_id) {
929 int __pyx_r;
930 __Pyx_RefNannyDeclarations
931 __Pyx_RefNannySetupContext("eobase_sub_id", 0);
932
933 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":15
934 *
935 * cdef int eobase_sub_id(int sub_id):
936 * return eobase.EO_BASE_BASE_ID + sub_id # <<<<<<<<<<<<<<
937 *
938 * class EoBase(EoDefault):
939 */
940 __pyx_r = (EO_BASE_BASE_ID + __pyx_v_sub_id);
941 goto __pyx_L0;
942
943 __pyx_r = 0;
944 __pyx_L0:;
945 __Pyx_RefNannyFinishContext();
946 return __pyx_r;
947}
948
949/* Python wrapper */
950static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_1event_thaw(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/
951static PyMethodDef __pyx_mdef_6eorepo_6eobase_6EoBase_1event_thaw = {__Pyx_NAMESTR("event_thaw"), (PyCFunction)__pyx_pw_6eorepo_6eobase_6EoBase_1event_thaw, METH_O, __Pyx_DOCSTR(0)};
952static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_1event_thaw(PyObject *__pyx_self, PyObject *__pyx_v_self) {
953 PyObject *__pyx_r = 0;
954 __Pyx_RefNannyDeclarations
955 __Pyx_RefNannySetupContext("event_thaw (wrapper)", 0);
956 __pyx_r = __pyx_pf_6eorepo_6eobase_6EoBase_event_thaw(__pyx_self, ((PyObject *)__pyx_v_self));
957 __Pyx_RefNannyFinishContext();
958 return __pyx_r;
959}
960
961/* "/home/yakov/eo_bindings/eorepo/eobase.pxi":23
962 * CALLBACK_ADD = <long>eobase.EO_EV_CALLBACK_ADD
963 *
964 * def event_thaw(self): # <<<<<<<<<<<<<<
965 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_THAW))
966 *
967 */
968
969static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_event_thaw(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
970 PyObject *__pyx_r = NULL;
971 __Pyx_RefNannyDeclarations
972 PyObject *__pyx_t_1 = NULL;
973 int __pyx_lineno = 0;
974 const char *__pyx_filename = NULL;
975 int __pyx_clineno = 0;
976 __Pyx_RefNannySetupContext("event_thaw", 0);
977
978 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":24
979 *
980 * def event_thaw(self):
981 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_THAW)) # <<<<<<<<<<<<<<
982 *
983 * def event_freeze(self):
984 */
985 if (!(likely(((__pyx_v_self) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_self, __pyx_ptype_6eorepo_9eodefault_EoDefault))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
986 __pyx_t_1 = __pyx_v_self;
987 __Pyx_INCREF(__pyx_t_1);
988 eo_do(__pyx_f_6eorepo_9eodefault__eo_instance_get(((struct __pyx_obj_6eorepo_9eodefault_EoDefault *)__pyx_t_1)), __pyx_f_6eorepo_6eobase_eobase_sub_id(EO_BASE_SUB_ID_EVENT_THAW));
989 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
990
991 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
992 goto __pyx_L0;
993 __pyx_L1_error:;
994 __Pyx_XDECREF(__pyx_t_1);
995 __Pyx_AddTraceback("eorepo.eobase.EoBase.event_thaw", __pyx_clineno, __pyx_lineno, __pyx_filename);
996 __pyx_r = NULL;
997 __pyx_L0:;
998 __Pyx_XGIVEREF(__pyx_r);
999 __Pyx_RefNannyFinishContext();
1000 return __pyx_r;
1001}
1002
1003/* Python wrapper */
1004static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_3event_freeze(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/
1005static PyMethodDef __pyx_mdef_6eorepo_6eobase_6EoBase_3event_freeze = {__Pyx_NAMESTR("event_freeze"), (PyCFunction)__pyx_pw_6eorepo_6eobase_6EoBase_3event_freeze, METH_O, __Pyx_DOCSTR(0)};
1006static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_3event_freeze(PyObject *__pyx_self, PyObject *__pyx_v_self) {
1007 PyObject *__pyx_r = 0;
1008 __Pyx_RefNannyDeclarations
1009 __Pyx_RefNannySetupContext("event_freeze (wrapper)", 0);
1010 __pyx_r = __pyx_pf_6eorepo_6eobase_6EoBase_2event_freeze(__pyx_self, ((PyObject *)__pyx_v_self));
1011 __Pyx_RefNannyFinishContext();
1012 return __pyx_r;
1013}
1014
1015/* "/home/yakov/eo_bindings/eorepo/eobase.pxi":26
1016 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_THAW))
1017 *
1018 * def event_freeze(self): # <<<<<<<<<<<<<<
1019 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_FREEZE))
1020 *
1021 */
1022
1023static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_2event_freeze(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
1024 PyObject *__pyx_r = NULL;
1025 __Pyx_RefNannyDeclarations
1026 PyObject *__pyx_t_1 = NULL;
1027 int __pyx_lineno = 0;
1028 const char *__pyx_filename = NULL;
1029 int __pyx_clineno = 0;
1030 __Pyx_RefNannySetupContext("event_freeze", 0);
1031
1032 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":27
1033 *
1034 * def event_freeze(self):
1035 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_FREEZE)) # <<<<<<<<<<<<<<
1036 *
1037 * def __init__(self, EoDefault parent):
1038 */
1039 if (!(likely(((__pyx_v_self) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_self, __pyx_ptype_6eorepo_9eodefault_EoDefault))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1040 __pyx_t_1 = __pyx_v_self;
1041 __Pyx_INCREF(__pyx_t_1);
1042 eo_do(__pyx_f_6eorepo_9eodefault__eo_instance_get(((struct __pyx_obj_6eorepo_9eodefault_EoDefault *)__pyx_t_1)), __pyx_f_6eorepo_6eobase_eobase_sub_id(EO_BASE_SUB_ID_EVENT_FREEZE));
1043 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
1044
1045 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1046 goto __pyx_L0;
1047 __pyx_L1_error:;
1048 __Pyx_XDECREF(__pyx_t_1);
1049 __Pyx_AddTraceback("eorepo.eobase.EoBase.event_freeze", __pyx_clineno, __pyx_lineno, __pyx_filename);
1050 __pyx_r = NULL;
1051 __pyx_L0:;
1052 __Pyx_XGIVEREF(__pyx_r);
1053 __Pyx_RefNannyFinishContext();
1054 return __pyx_r;
1055}
1056
1057/* Python wrapper */
1058static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_5__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1059static PyMethodDef __pyx_mdef_6eorepo_6eobase_6EoBase_5__init__ = {__Pyx_NAMESTR("__init__"), (PyCFunction)__pyx_pw_6eorepo_6eobase_6EoBase_5__init__, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)};
1060static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_5__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1061 PyObject *__pyx_v_self = 0;
1062 CYTHON_UNUSED struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_parent = 0;
1063 PyObject *__pyx_r = 0;
1064 __Pyx_RefNannyDeclarations
1065 __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
1066 {
1067 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__self,&__pyx_n_s__parent,0};
1068 PyObject* values[2] = {0,0};
1069 if (unlikely(__pyx_kwds)) {
1070 Py_ssize_t kw_args;
1071 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
1072 switch (pos_args) {
1073 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
1074 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
1075 case 0: break;
1076 default: goto __pyx_L5_argtuple_error;
1077 }
1078 kw_args = PyDict_Size(__pyx_kwds);
1079 switch (pos_args) {
1080 case 0:
1081 if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__self)) != 0)) kw_args--;
1082 else goto __pyx_L5_argtuple_error;
1083 case 1:
1084 if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__parent)) != 0)) kw_args--;
1085 else {
1086 __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1087 }
1088 }
1089 if (unlikely(kw_args > 0)) {
1090 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1091 }
1092 } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
1093 goto __pyx_L5_argtuple_error;
1094 } else {
1095 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
1096 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
1097 }
1098 __pyx_v_self = values[0];
1099 __pyx_v_parent = ((struct __pyx_obj_6eorepo_9eodefault_EoDefault *)values[1]);
1100 }
1101 goto __pyx_L4_argument_unpacking_done;
1102 __pyx_L5_argtuple_error:;
1103 __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1104 __pyx_L3_error:;
1105 __Pyx_AddTraceback("eorepo.eobase.EoBase.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
1106 __Pyx_RefNannyFinishContext();
1107 return NULL;
1108 __pyx_L4_argument_unpacking_done:;
1109 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_parent), __pyx_ptype_6eorepo_9eodefault_EoDefault, 1, "parent", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1110 __pyx_r = __pyx_pf_6eorepo_6eobase_6EoBase_4__init__(__pyx_self, __pyx_v_self, __pyx_v_parent);
1111 goto __pyx_L0;
1112 __pyx_L1_error:;
1113 __pyx_r = NULL;
1114 __pyx_L0:;
1115 __Pyx_RefNannyFinishContext();
1116 return __pyx_r;
1117}
1118
1119/* "/home/yakov/eo_bindings/eorepo/eobase.pxi":29
1120 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_FREEZE))
1121 *
1122 * def __init__(self, EoDefault parent): # <<<<<<<<<<<<<<
1123 * instantiateable = False
1124 * if not instantiateable:
1125 */
1126
1127static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_4__init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, CYTHON_UNUSED struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_parent) {
1128 int __pyx_v_instantiateable;
1129 PyObject *__pyx_r = NULL;
1130 __Pyx_RefNannyDeclarations
1131 int __pyx_t_1;
1132 PyObject *__pyx_t_2 = NULL;
1133 PyObject *__pyx_t_3 = NULL;
1134 int __pyx_lineno = 0;
1135 const char *__pyx_filename = NULL;
1136 int __pyx_clineno = 0;
1137 __Pyx_RefNannySetupContext("__init__", 0);
1138
1139 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":30
1140 *
1141 * def __init__(self, EoDefault parent):
1142 * instantiateable = False # <<<<<<<<<<<<<<
1143 * if not instantiateable:
1144 * print "Class '%s' is not instantiate-able. Aborting."%(self.__class__.__name__)
1145 */
1146 __pyx_v_instantiateable = 0;
1147
1148 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":31
1149 * def __init__(self, EoDefault parent):
1150 * instantiateable = False
1151 * if not instantiateable: # <<<<<<<<<<<<<<
1152 * print "Class '%s' is not instantiate-able. Aborting."%(self.__class__.__name__)
1153 * exit(1)
1154 */
1155 __pyx_t_1 = (!__pyx_v_instantiateable);
1156 if (__pyx_t_1) {
1157
1158 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":32
1159 * instantiateable = False
1160 * if not instantiateable:
1161 * print "Class '%s' is not instantiate-able. Aborting."%(self.__class__.__name__) # <<<<<<<<<<<<<<
1162 * exit(1)
1163 *
1164 */
1165 __pyx_t_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s____class__); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1166 __Pyx_GOTREF(__pyx_t_2);
1167 __pyx_t_3 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s____name__); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1168 __Pyx_GOTREF(__pyx_t_3);
1169 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
1170 __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_1), __pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1171 __Pyx_GOTREF(((PyObject *)__pyx_t_2));
1172 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1173 if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1174 __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
1175
1176 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":33
1177 * if not instantiateable:
1178 * print "Class '%s' is not instantiate-able. Aborting."%(self.__class__.__name__)
1179 * exit(1) # <<<<<<<<<<<<<<
1180 *
1181 *
1182 */
1183 __pyx_t_2 = PyObject_Call(__pyx_builtin_exit, ((PyObject *)__pyx_k_tuple_2), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1184 __Pyx_GOTREF(__pyx_t_2);
1185 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
1186 goto __pyx_L3;
1187 }
1188 __pyx_L3:;
1189
1190 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1191 goto __pyx_L0;
1192 __pyx_L1_error:;
1193 __Pyx_XDECREF(__pyx_t_2);
1194 __Pyx_XDECREF(__pyx_t_3);
1195 __Pyx_AddTraceback("eorepo.eobase.EoBase.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
1196 __pyx_r = NULL;
1197 __pyx_L0:;
1198 __Pyx_XGIVEREF(__pyx_r);
1199 __Pyx_RefNannyFinishContext();
1200 return __pyx_r;
1201}
1202
1203/* Python wrapper */
1204static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_7event_global_freeze_get(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
1205static PyMethodDef __pyx_mdef_6eorepo_6eobase_6EoBase_7event_global_freeze_get = {__Pyx_NAMESTR("event_global_freeze_get"), (PyCFunction)__pyx_pw_6eorepo_6eobase_6EoBase_7event_global_freeze_get, METH_NOARGS, __Pyx_DOCSTR(0)};
1206static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_7event_global_freeze_get(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
1207 PyObject *__pyx_r = 0;
1208 __Pyx_RefNannyDeclarations
1209 __Pyx_RefNannySetupContext("event_global_freeze_get (wrapper)", 0);
1210 __pyx_r = __pyx_pf_6eorepo_6eobase_6EoBase_6event_global_freeze_get(__pyx_self);
1211 __Pyx_RefNannyFinishContext();
1212 return __pyx_r;
1213}
1214
1215/* "/home/yakov/eo_bindings/eorepo/eobase.pxi":37
1216 *
1217 * @staticmethod
1218 * def event_global_freeze_get(): # <<<<<<<<<<<<<<
1219 * cdef int fcount
1220 * eodefault.eo_class_do(eobase.eo_base_class_get(), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_GLOBAL_FREEZE_GET), &fcount)
1221 */
1222
1223static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_6event_global_freeze_get(CYTHON_UNUSED PyObject *__pyx_self) {
1224 int __pyx_v_fcount;
1225 PyObject *__pyx_v_fcount_ = NULL;
1226 PyObject *__pyx_r = NULL;
1227 __Pyx_RefNannyDeclarations
1228 PyObject *__pyx_t_1 = NULL;
1229 int __pyx_lineno = 0;
1230 const char *__pyx_filename = NULL;
1231 int __pyx_clineno = 0;
1232 __Pyx_RefNannySetupContext("event_global_freeze_get", 0);
1233
1234 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":39
1235 * def event_global_freeze_get():
1236 * cdef int fcount
1237 * eodefault.eo_class_do(eobase.eo_base_class_get(), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_GLOBAL_FREEZE_GET), &fcount) # <<<<<<<<<<<<<<
1238 * fcount_ = <object>fcount
1239 * return (fcount_)
1240 */
1241 eo_class_do(eo_base_class_get(), __pyx_f_6eorepo_6eobase_eobase_sub_id(EO_BASE_SUB_ID_EVENT_GLOBAL_FREEZE_GET), (&__pyx_v_fcount));
1242
1243 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":40
1244 * cdef int fcount
1245 * eodefault.eo_class_do(eobase.eo_base_class_get(), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_GLOBAL_FREEZE_GET), &fcount)
1246 * fcount_ = <object>fcount # <<<<<<<<<<<<<<
1247 * return (fcount_)
1248 *
1249 */
1250 __pyx_t_1 = PyInt_FromLong(__pyx_v_fcount); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1251 __Pyx_GOTREF(__pyx_t_1);
1252 __Pyx_INCREF(((PyObject *)__pyx_t_1));
1253 __pyx_v_fcount_ = __pyx_t_1;
1254 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
1255
1256 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":41
1257 * eodefault.eo_class_do(eobase.eo_base_class_get(), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_GLOBAL_FREEZE_GET), &fcount)
1258 * fcount_ = <object>fcount
1259 * return (fcount_) # <<<<<<<<<<<<<<
1260 *
1261 *
1262 */
1263 __Pyx_XDECREF(__pyx_r);
1264 __Pyx_INCREF(__pyx_v_fcount_);
1265 __pyx_r = __pyx_v_fcount_;
1266 goto __pyx_L0;
1267
1268 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1269 goto __pyx_L0;
1270 __pyx_L1_error:;
1271 __Pyx_XDECREF(__pyx_t_1);
1272 __Pyx_AddTraceback("eorepo.eobase.EoBase.event_global_freeze_get", __pyx_clineno, __pyx_lineno, __pyx_filename);
1273 __pyx_r = NULL;
1274 __pyx_L0:;
1275 __Pyx_XDECREF(__pyx_v_fcount_);
1276 __Pyx_XGIVEREF(__pyx_r);
1277 __Pyx_RefNannyFinishContext();
1278 return __pyx_r;
1279}
1280
1281/* Python wrapper */
1282static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_9event_global_freeze(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
1283static PyMethodDef __pyx_mdef_6eorepo_6eobase_6EoBase_9event_global_freeze = {__Pyx_NAMESTR("event_global_freeze"), (PyCFunction)__pyx_pw_6eorepo_6eobase_6EoBase_9event_global_freeze, METH_NOARGS, __Pyx_DOCSTR(0)};
1284static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_9event_global_freeze(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
1285 PyObject *__pyx_r = 0;
1286 __Pyx_RefNannyDeclarations
1287 __Pyx_RefNannySetupContext("event_global_freeze (wrapper)", 0);
1288 __pyx_r = __pyx_pf_6eorepo_6eobase_6EoBase_8event_global_freeze(__pyx_self);
1289 __Pyx_RefNannyFinishContext();
1290 return __pyx_r;
1291}
1292
1293/* "/home/yakov/eo_bindings/eorepo/eobase.pxi":45
1294 *
1295 * @staticmethod
1296 * def event_global_freeze(): # <<<<<<<<<<<<<<
1297 * eodefault.eo_class_do(eobase.eo_base_class_get(), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_GLOBAL_FREEZE))
1298 *
1299 */
1300
1301static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_8event_global_freeze(CYTHON_UNUSED PyObject *__pyx_self) {
1302 PyObject *__pyx_r = NULL;
1303 __Pyx_RefNannyDeclarations
1304 __Pyx_RefNannySetupContext("event_global_freeze", 0);
1305
1306 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":46
1307 * @staticmethod
1308 * def event_global_freeze():
1309 * eodefault.eo_class_do(eobase.eo_base_class_get(), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_GLOBAL_FREEZE)) # <<<<<<<<<<<<<<
1310 *
1311 *
1312 */
1313 eo_class_do(eo_base_class_get(), __pyx_f_6eorepo_6eobase_eobase_sub_id(EO_BASE_SUB_ID_EVENT_GLOBAL_FREEZE));
1314
1315 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1316 __Pyx_XGIVEREF(__pyx_r);
1317 __Pyx_RefNannyFinishContext();
1318 return __pyx_r;
1319}
1320
1321/* Python wrapper */
1322static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_11data_get(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1323static PyMethodDef __pyx_mdef_6eorepo_6eobase_6EoBase_11data_get = {__Pyx_NAMESTR("data_get"), (PyCFunction)__pyx_pw_6eorepo_6eobase_6EoBase_11data_get, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)};
1324static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_11data_get(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1325 PyObject *__pyx_v_self = 0;
1326 PyObject *__pyx_v__key = 0;
1327 PyObject *__pyx_r = 0;
1328 __Pyx_RefNannyDeclarations
1329 __Pyx_RefNannySetupContext("data_get (wrapper)", 0);
1330 {
1331 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__self,&__pyx_n_s___key,0};
1332 PyObject* values[2] = {0,0};
1333 if (unlikely(__pyx_kwds)) {
1334 Py_ssize_t kw_args;
1335 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
1336 switch (pos_args) {
1337 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
1338 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
1339 case 0: break;
1340 default: goto __pyx_L5_argtuple_error;
1341 }
1342 kw_args = PyDict_Size(__pyx_kwds);
1343 switch (pos_args) {
1344 case 0:
1345 if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__self)) != 0)) kw_args--;
1346 else goto __pyx_L5_argtuple_error;
1347 case 1:
1348 if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s___key)) != 0)) kw_args--;
1349 else {
1350 __Pyx_RaiseArgtupleInvalid("data_get", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1351 }
1352 }
1353 if (unlikely(kw_args > 0)) {
1354 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "data_get") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1355 }
1356 } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
1357 goto __pyx_L5_argtuple_error;
1358 } else {
1359 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
1360 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
1361 }
1362 __pyx_v_self = values[0];
1363 __pyx_v__key = values[1];
1364 }
1365 goto __pyx_L4_argument_unpacking_done;
1366 __pyx_L5_argtuple_error:;
1367 __Pyx_RaiseArgtupleInvalid("data_get", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1368 __pyx_L3_error:;
1369 __Pyx_AddTraceback("eorepo.eobase.EoBase.data_get", __pyx_clineno, __pyx_lineno, __pyx_filename);
1370 __Pyx_RefNannyFinishContext();
1371 return NULL;
1372 __pyx_L4_argument_unpacking_done:;
1373 __pyx_r = __pyx_pf_6eorepo_6eobase_6EoBase_10data_get(__pyx_self, __pyx_v_self, __pyx_v__key);
1374 __Pyx_RefNannyFinishContext();
1375 return __pyx_r;
1376}
1377
1378/* "/home/yakov/eo_bindings/eorepo/eobase.pxi":49
1379 *
1380 *
1381 * def data_get(self, object _key): # <<<<<<<<<<<<<<
1382 * _key = None if _key is None else pytext_to_utf8(_key)
1383 * cdef char* key = NULL if _key is None else <char*> _key
1384 */
1385
1386static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_10data_get(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v__key) {
1387 char *__pyx_v_key;
1388 void *__pyx_v_data;
1389 PyObject *__pyx_v_data_ = NULL;
1390 PyObject *__pyx_r = NULL;
1391 __Pyx_RefNannyDeclarations
1392 PyObject *__pyx_t_1 = NULL;
1393 int __pyx_t_2;
1394 PyObject *__pyx_t_3 = NULL;
1395 PyObject *__pyx_t_4 = NULL;
1396 PyObject *__pyx_t_5 = NULL;
1397 void *__pyx_t_6;
1398 char *__pyx_t_7;
1399 int __pyx_lineno = 0;
1400 const char *__pyx_filename = NULL;
1401 int __pyx_clineno = 0;
1402 __Pyx_RefNannySetupContext("data_get", 0);
1403 __Pyx_INCREF(__pyx_v__key);
1404
1405 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":50
1406 *
1407 * def data_get(self, object _key):
1408 * _key = None if _key is None else pytext_to_utf8(_key) # <<<<<<<<<<<<<<
1409 * cdef char* key = NULL if _key is None else <char*> _key
1410 * cdef void* data
1411 */
1412 __pyx_t_2 = (__pyx_v__key == Py_None);
1413 if (__pyx_t_2) {
1414 __Pyx_INCREF(Py_None);
1415 __pyx_t_1 = Py_None;
1416 } else {
1417 __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__pytext_to_utf8); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1418 __Pyx_GOTREF(__pyx_t_3);
1419 __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1420 __Pyx_GOTREF(__pyx_t_4);
1421 __Pyx_INCREF(__pyx_v__key);
1422 PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v__key);
1423 __Pyx_GIVEREF(__pyx_v__key);
1424 __pyx_t_5 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1425 __Pyx_GOTREF(__pyx_t_5);
1426 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1427 __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
1428 __pyx_t_1 = __pyx_t_5;
1429 __pyx_t_5 = 0;
1430 }
1431 __Pyx_DECREF(__pyx_v__key);
1432 __pyx_v__key = __pyx_t_1;
1433 __pyx_t_1 = 0;
1434
1435 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":51
1436 * def data_get(self, object _key):
1437 * _key = None if _key is None else pytext_to_utf8(_key)
1438 * cdef char* key = NULL if _key is None else <char*> _key # <<<<<<<<<<<<<<
1439 * cdef void* data
1440 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_DATA_GET), key, &data)
1441 */
1442 __pyx_t_2 = (__pyx_v__key == Py_None);
1443 if (__pyx_t_2) {
1444 __pyx_t_6 = NULL;
1445 } else {
1446 __pyx_t_7 = PyBytes_AsString(__pyx_v__key); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1447 __pyx_t_6 = ((char *)__pyx_t_7);
1448 }
1449 __pyx_v_key = __pyx_t_6;
1450
1451 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":53
1452 * cdef char* key = NULL if _key is None else <char*> _key
1453 * cdef void* data
1454 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_DATA_GET), key, &data) # <<<<<<<<<<<<<<
1455 * data_ = None if data == NULL else <object>data
1456 * return (data_)
1457 */
1458 if (!(likely(((__pyx_v_self) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_self, __pyx_ptype_6eorepo_9eodefault_EoDefault))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1459 __pyx_t_1 = __pyx_v_self;
1460 __Pyx_INCREF(__pyx_t_1);
1461 eo_do(__pyx_f_6eorepo_9eodefault__eo_instance_get(((struct __pyx_obj_6eorepo_9eodefault_EoDefault *)__pyx_t_1)), __pyx_f_6eorepo_6eobase_eobase_sub_id(EO_BASE_SUB_ID_DATA_GET), __pyx_v_key, (&__pyx_v_data));
1462 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
1463
1464 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":54
1465 * cdef void* data
1466 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_DATA_GET), key, &data)
1467 * data_ = None if data == NULL else <object>data # <<<<<<<<<<<<<<
1468 * return (data_)
1469 *
1470 */
1471 if ((__pyx_v_data == NULL)) {
1472 __Pyx_INCREF(Py_None);
1473 __pyx_t_1 = Py_None;
1474 } else {
1475 __Pyx_INCREF(((PyObject *)__pyx_v_data));
1476 __pyx_t_1 = ((PyObject *)__pyx_v_data);
1477 }
1478 __pyx_v_data_ = __pyx_t_1;
1479 __pyx_t_1 = 0;
1480
1481 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":55
1482 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_DATA_GET), key, &data)
1483 * data_ = None if data == NULL else <object>data
1484 * return (data_) # <<<<<<<<<<<<<<
1485 *
1486 * def event_callback_del(self, long _desc, object _func):
1487 */
1488 __Pyx_XDECREF(__pyx_r);
1489 __Pyx_INCREF(__pyx_v_data_);
1490 __pyx_r = __pyx_v_data_;
1491 goto __pyx_L0;
1492
1493 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1494 goto __pyx_L0;
1495 __pyx_L1_error:;
1496 __Pyx_XDECREF(__pyx_t_1);
1497 __Pyx_XDECREF(__pyx_t_3);
1498 __Pyx_XDECREF(__pyx_t_4);
1499 __Pyx_XDECREF(__pyx_t_5);
1500 __Pyx_AddTraceback("eorepo.eobase.EoBase.data_get", __pyx_clineno, __pyx_lineno, __pyx_filename);
1501 __pyx_r = NULL;
1502 __pyx_L0:;
1503 __Pyx_XDECREF(__pyx_v_data_);
1504 __Pyx_XDECREF(__pyx_v__key);
1505 __Pyx_XGIVEREF(__pyx_r);
1506 __Pyx_RefNannyFinishContext();
1507 return __pyx_r;
1508}
1509
1510/* Python wrapper */
1511static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_13event_callback_del(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1512static PyMethodDef __pyx_mdef_6eorepo_6eobase_6EoBase_13event_callback_del = {__Pyx_NAMESTR("event_callback_del"), (PyCFunction)__pyx_pw_6eorepo_6eobase_6EoBase_13event_callback_del, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)};
1513static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_13event_callback_del(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1514 PyObject *__pyx_v_self = 0;
1515 long __pyx_v__desc;
1516 PyObject *__pyx_v__func = 0;
1517 PyObject *__pyx_r = 0;
1518 __Pyx_RefNannyDeclarations
1519 __Pyx_RefNannySetupContext("event_callback_del (wrapper)", 0);
1520 {
1521 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__self,&__pyx_n_s___desc,&__pyx_n_s___func,0};
1522 PyObject* values[3] = {0,0,0};
1523 if (unlikely(__pyx_kwds)) {
1524 Py_ssize_t kw_args;
1525 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
1526 switch (pos_args) {
1527 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
1528 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
1529 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
1530 case 0: break;
1531 default: goto __pyx_L5_argtuple_error;
1532 }
1533 kw_args = PyDict_Size(__pyx_kwds);
1534 switch (pos_args) {
1535 case 0:
1536 if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__self)) != 0)) kw_args--;
1537 else goto __pyx_L5_argtuple_error;
1538 case 1:
1539 if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s___desc)) != 0)) kw_args--;
1540 else {
1541 __Pyx_RaiseArgtupleInvalid("event_callback_del", 1, 3, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1542 }
1543 case 2:
1544 if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s___func)) != 0)) kw_args--;
1545 else {
1546 __Pyx_RaiseArgtupleInvalid("event_callback_del", 1, 3, 3, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1547 }
1548 }
1549 if (unlikely(kw_args > 0)) {
1550 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "event_callback_del") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1551 }
1552 } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
1553 goto __pyx_L5_argtuple_error;
1554 } else {
1555 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
1556 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
1557 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
1558 }
1559 __pyx_v_self = values[0];
1560 __pyx_v__desc = __Pyx_PyInt_AsLong(values[1]); if (unlikely((__pyx_v__desc == (long)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1561 __pyx_v__func = values[2];
1562 }
1563 goto __pyx_L4_argument_unpacking_done;
1564 __pyx_L5_argtuple_error:;
1565 __Pyx_RaiseArgtupleInvalid("event_callback_del", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1566 __pyx_L3_error:;
1567 __Pyx_AddTraceback("eorepo.eobase.EoBase.event_callback_del", __pyx_clineno, __pyx_lineno, __pyx_filename);
1568 __Pyx_RefNannyFinishContext();
1569 return NULL;
1570 __pyx_L4_argument_unpacking_done:;
1571 __pyx_r = __pyx_pf_6eorepo_6eobase_6EoBase_12event_callback_del(__pyx_self, __pyx_v_self, __pyx_v__desc, __pyx_v__func);
1572 __Pyx_RefNannyFinishContext();
1573 return __pyx_r;
1574}
1575
1576/* "/home/yakov/eo_bindings/eorepo/eobase.pxi":57
1577 * return (data_)
1578 *
1579 * def event_callback_del(self, long _desc, object _func): # <<<<<<<<<<<<<<
1580 * cdef Eo_Event_Cb func = <Eo_Event_Cb> eodefault._object_callback
1581 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_CALLBACK_DEL), _desc, func, <void*>_func)
1582 */
1583
1584static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_12event_callback_del(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, long __pyx_v__desc, PyObject *__pyx_v__func) {
1585 Eo_Event_Cb __pyx_v_func;
1586 PyObject *__pyx_r = NULL;
1587 __Pyx_RefNannyDeclarations
1588 PyObject *__pyx_t_1 = NULL;
1589 int __pyx_lineno = 0;
1590 const char *__pyx_filename = NULL;
1591 int __pyx_clineno = 0;
1592 __Pyx_RefNannySetupContext("event_callback_del", 0);
1593
1594 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":58
1595 *
1596 * def event_callback_del(self, long _desc, object _func):
1597 * cdef Eo_Event_Cb func = <Eo_Event_Cb> eodefault._object_callback # <<<<<<<<<<<<<<
1598 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_CALLBACK_DEL), _desc, func, <void*>_func)
1599 * Py_DECREF(_func)
1600 */
1601 __pyx_v_func = ((Eo_Event_Cb)__pyx_f_6eorepo_9eodefault__object_callback);
1602
1603 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":59
1604 * def event_callback_del(self, long _desc, object _func):
1605 * cdef Eo_Event_Cb func = <Eo_Event_Cb> eodefault._object_callback
1606 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_CALLBACK_DEL), _desc, func, <void*>_func) # <<<<<<<<<<<<<<
1607 * Py_DECREF(_func)
1608 *
1609 */
1610 if (!(likely(((__pyx_v_self) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_self, __pyx_ptype_6eorepo_9eodefault_EoDefault))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 59; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1611 __pyx_t_1 = __pyx_v_self;
1612 __Pyx_INCREF(__pyx_t_1);
1613 eo_do(__pyx_f_6eorepo_9eodefault__eo_instance_get(((struct __pyx_obj_6eorepo_9eodefault_EoDefault *)__pyx_t_1)), __pyx_f_6eorepo_6eobase_eobase_sub_id(EO_BASE_SUB_ID_EVENT_CALLBACK_DEL), __pyx_v__desc, __pyx_v_func, ((void *)__pyx_v__func));
1614 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
1615
1616 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":60
1617 * cdef Eo_Event_Cb func = <Eo_Event_Cb> eodefault._object_callback
1618 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_CALLBACK_DEL), _desc, func, <void*>_func)
1619 * Py_DECREF(_func) # <<<<<<<<<<<<<<
1620 *
1621 *
1622 */
1623 Py_DECREF(__pyx_v__func);
1624
1625 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1626 goto __pyx_L0;
1627 __pyx_L1_error:;
1628 __Pyx_XDECREF(__pyx_t_1);
1629 __Pyx_AddTraceback("eorepo.eobase.EoBase.event_callback_del", __pyx_clineno, __pyx_lineno, __pyx_filename);
1630 __pyx_r = NULL;
1631 __pyx_L0:;
1632 __Pyx_XGIVEREF(__pyx_r);
1633 __Pyx_RefNannyFinishContext();
1634 return __pyx_r;
1635}
1636
1637/* Python wrapper */
1638static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_15event_freeze_get(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/
1639static PyMethodDef __pyx_mdef_6eorepo_6eobase_6EoBase_15event_freeze_get = {__Pyx_NAMESTR("event_freeze_get"), (PyCFunction)__pyx_pw_6eorepo_6eobase_6EoBase_15event_freeze_get, METH_O, __Pyx_DOCSTR(0)};
1640static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_15event_freeze_get(PyObject *__pyx_self, PyObject *__pyx_v_self) {
1641 PyObject *__pyx_r = 0;
1642 __Pyx_RefNannyDeclarations
1643 __Pyx_RefNannySetupContext("event_freeze_get (wrapper)", 0);
1644 __pyx_r = __pyx_pf_6eorepo_6eobase_6EoBase_14event_freeze_get(__pyx_self, ((PyObject *)__pyx_v_self));
1645 __Pyx_RefNannyFinishContext();
1646 return __pyx_r;
1647}
1648
1649/* "/home/yakov/eo_bindings/eorepo/eobase.pxi":65
1650 *
1651 *
1652 * def event_freeze_get(self): # <<<<<<<<<<<<<<
1653 * cdef int fcount
1654 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_FREEZE_GET), &fcount)
1655 */
1656
1657static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_14event_freeze_get(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
1658 int __pyx_v_fcount;
1659 PyObject *__pyx_v_fcount_ = NULL;
1660 PyObject *__pyx_r = NULL;
1661 __Pyx_RefNannyDeclarations
1662 PyObject *__pyx_t_1 = NULL;
1663 int __pyx_lineno = 0;
1664 const char *__pyx_filename = NULL;
1665 int __pyx_clineno = 0;
1666 __Pyx_RefNannySetupContext("event_freeze_get", 0);
1667
1668 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":67
1669 * def event_freeze_get(self):
1670 * cdef int fcount
1671 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_FREEZE_GET), &fcount) # <<<<<<<<<<<<<<
1672 * fcount_ = <object>fcount
1673 * return (fcount_)
1674 */
1675 if (!(likely(((__pyx_v_self) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_self, __pyx_ptype_6eorepo_9eodefault_EoDefault))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 67; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1676 __pyx_t_1 = __pyx_v_self;
1677 __Pyx_INCREF(__pyx_t_1);
1678 eo_do(__pyx_f_6eorepo_9eodefault__eo_instance_get(((struct __pyx_obj_6eorepo_9eodefault_EoDefault *)__pyx_t_1)), __pyx_f_6eorepo_6eobase_eobase_sub_id(EO_BASE_SUB_ID_EVENT_FREEZE_GET), (&__pyx_v_fcount));
1679 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
1680
1681 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":68
1682 * cdef int fcount
1683 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_FREEZE_GET), &fcount)
1684 * fcount_ = <object>fcount # <<<<<<<<<<<<<<
1685 * return (fcount_)
1686 *
1687 */
1688 __pyx_t_1 = PyInt_FromLong(__pyx_v_fcount); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1689 __Pyx_GOTREF(__pyx_t_1);
1690 __Pyx_INCREF(((PyObject *)__pyx_t_1));
1691 __pyx_v_fcount_ = __pyx_t_1;
1692 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
1693
1694 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":69
1695 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_FREEZE_GET), &fcount)
1696 * fcount_ = <object>fcount
1697 * return (fcount_) # <<<<<<<<<<<<<<
1698 *
1699 * @staticmethod
1700 */
1701 __Pyx_XDECREF(__pyx_r);
1702 __Pyx_INCREF(__pyx_v_fcount_);
1703 __pyx_r = __pyx_v_fcount_;
1704 goto __pyx_L0;
1705
1706 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1707 goto __pyx_L0;
1708 __pyx_L1_error:;
1709 __Pyx_XDECREF(__pyx_t_1);
1710 __Pyx_AddTraceback("eorepo.eobase.EoBase.event_freeze_get", __pyx_clineno, __pyx_lineno, __pyx_filename);
1711 __pyx_r = NULL;
1712 __pyx_L0:;
1713 __Pyx_XDECREF(__pyx_v_fcount_);
1714 __Pyx_XGIVEREF(__pyx_r);
1715 __Pyx_RefNannyFinishContext();
1716 return __pyx_r;
1717}
1718
1719/* Python wrapper */
1720static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_17event_global_thaw(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
1721static PyMethodDef __pyx_mdef_6eorepo_6eobase_6EoBase_17event_global_thaw = {__Pyx_NAMESTR("event_global_thaw"), (PyCFunction)__pyx_pw_6eorepo_6eobase_6EoBase_17event_global_thaw, METH_NOARGS, __Pyx_DOCSTR(0)};
1722static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_17event_global_thaw(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
1723 PyObject *__pyx_r = 0;
1724 __Pyx_RefNannyDeclarations
1725 __Pyx_RefNannySetupContext("event_global_thaw (wrapper)", 0);
1726 __pyx_r = __pyx_pf_6eorepo_6eobase_6EoBase_16event_global_thaw(__pyx_self);
1727 __Pyx_RefNannyFinishContext();
1728 return __pyx_r;
1729}
1730
1731/* "/home/yakov/eo_bindings/eorepo/eobase.pxi":72
1732 *
1733 * @staticmethod
1734 * def event_global_thaw(): # <<<<<<<<<<<<<<
1735 * eodefault.eo_class_do(eobase.eo_base_class_get(), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_GLOBAL_THAW))
1736 *
1737 */
1738
1739static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_16event_global_thaw(CYTHON_UNUSED PyObject *__pyx_self) {
1740 PyObject *__pyx_r = NULL;
1741 __Pyx_RefNannyDeclarations
1742 __Pyx_RefNannySetupContext("event_global_thaw", 0);
1743
1744 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":73
1745 * @staticmethod
1746 * def event_global_thaw():
1747 * eodefault.eo_class_do(eobase.eo_base_class_get(), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_GLOBAL_THAW)) # <<<<<<<<<<<<<<
1748 *
1749 *
1750 */
1751 eo_class_do(eo_base_class_get(), __pyx_f_6eorepo_6eobase_eobase_sub_id(EO_BASE_SUB_ID_EVENT_GLOBAL_THAW));
1752
1753 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1754 __Pyx_XGIVEREF(__pyx_r);
1755 __Pyx_RefNannyFinishContext();
1756 return __pyx_r;
1757}
1758
1759/* Python wrapper */
1760static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_19data_del(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1761static PyMethodDef __pyx_mdef_6eorepo_6eobase_6EoBase_19data_del = {__Pyx_NAMESTR("data_del"), (PyCFunction)__pyx_pw_6eorepo_6eobase_6EoBase_19data_del, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)};
1762static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_19data_del(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1763 PyObject *__pyx_v_self = 0;
1764 PyObject *__pyx_v__key = 0;
1765 PyObject *__pyx_r = 0;
1766 __Pyx_RefNannyDeclarations
1767 __Pyx_RefNannySetupContext("data_del (wrapper)", 0);
1768 {
1769 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__self,&__pyx_n_s___key,0};
1770 PyObject* values[2] = {0,0};
1771 if (unlikely(__pyx_kwds)) {
1772 Py_ssize_t kw_args;
1773 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
1774 switch (pos_args) {
1775 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
1776 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
1777 case 0: break;
1778 default: goto __pyx_L5_argtuple_error;
1779 }
1780 kw_args = PyDict_Size(__pyx_kwds);
1781 switch (pos_args) {
1782 case 0:
1783 if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__self)) != 0)) kw_args--;
1784 else goto __pyx_L5_argtuple_error;
1785 case 1:
1786 if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s___key)) != 0)) kw_args--;
1787 else {
1788 __Pyx_RaiseArgtupleInvalid("data_del", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1789 }
1790 }
1791 if (unlikely(kw_args > 0)) {
1792 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "data_del") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1793 }
1794 } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
1795 goto __pyx_L5_argtuple_error;
1796 } else {
1797 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
1798 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
1799 }
1800 __pyx_v_self = values[0];
1801 __pyx_v__key = values[1];
1802 }
1803 goto __pyx_L4_argument_unpacking_done;
1804 __pyx_L5_argtuple_error:;
1805 __Pyx_RaiseArgtupleInvalid("data_del", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1806 __pyx_L3_error:;
1807 __Pyx_AddTraceback("eorepo.eobase.EoBase.data_del", __pyx_clineno, __pyx_lineno, __pyx_filename);
1808 __Pyx_RefNannyFinishContext();
1809 return NULL;
1810 __pyx_L4_argument_unpacking_done:;
1811 __pyx_r = __pyx_pf_6eorepo_6eobase_6EoBase_18data_del(__pyx_self, __pyx_v_self, __pyx_v__key);
1812 __Pyx_RefNannyFinishContext();
1813 return __pyx_r;
1814}
1815
1816/* "/home/yakov/eo_bindings/eorepo/eobase.pxi":76
1817 *
1818 *
1819 * def data_del(self, object _key): # <<<<<<<<<<<<<<
1820 * _key = None if _key is None else pytext_to_utf8(_key)
1821 * cdef char* key = NULL if _key is None else <char*> _key
1822 */
1823
1824static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_18data_del(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v__key) {
1825 char *__pyx_v_key;
1826 PyObject *__pyx_r = NULL;
1827 __Pyx_RefNannyDeclarations
1828 PyObject *__pyx_t_1 = NULL;
1829 int __pyx_t_2;
1830 PyObject *__pyx_t_3 = NULL;
1831 PyObject *__pyx_t_4 = NULL;
1832 PyObject *__pyx_t_5 = NULL;
1833 void *__pyx_t_6;
1834 char *__pyx_t_7;
1835 int __pyx_lineno = 0;
1836 const char *__pyx_filename = NULL;
1837 int __pyx_clineno = 0;
1838 __Pyx_RefNannySetupContext("data_del", 0);
1839 __Pyx_INCREF(__pyx_v__key);
1840
1841 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":77
1842 *
1843 * def data_del(self, object _key):
1844 * _key = None if _key is None else pytext_to_utf8(_key) # <<<<<<<<<<<<<<
1845 * cdef char* key = NULL if _key is None else <char*> _key
1846 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_DATA_DEL), key)
1847 */
1848 __pyx_t_2 = (__pyx_v__key == Py_None);
1849 if (__pyx_t_2) {
1850 __Pyx_INCREF(Py_None);
1851 __pyx_t_1 = Py_None;
1852 } else {
1853 __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__pytext_to_utf8); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 77; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1854 __Pyx_GOTREF(__pyx_t_3);
1855 __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 77; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1856 __Pyx_GOTREF(__pyx_t_4);
1857 __Pyx_INCREF(__pyx_v__key);
1858 PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v__key);
1859 __Pyx_GIVEREF(__pyx_v__key);
1860 __pyx_t_5 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 77; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1861 __Pyx_GOTREF(__pyx_t_5);
1862 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1863 __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
1864 __pyx_t_1 = __pyx_t_5;
1865 __pyx_t_5 = 0;
1866 }
1867 __Pyx_DECREF(__pyx_v__key);
1868 __pyx_v__key = __pyx_t_1;
1869 __pyx_t_1 = 0;
1870
1871 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":78
1872 * def data_del(self, object _key):
1873 * _key = None if _key is None else pytext_to_utf8(_key)
1874 * cdef char* key = NULL if _key is None else <char*> _key # <<<<<<<<<<<<<<
1875 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_DATA_DEL), key)
1876 *
1877 */
1878 __pyx_t_2 = (__pyx_v__key == Py_None);
1879 if (__pyx_t_2) {
1880 __pyx_t_6 = NULL;
1881 } else {
1882 __pyx_t_7 = PyBytes_AsString(__pyx_v__key); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 78; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1883 __pyx_t_6 = ((char *)__pyx_t_7);
1884 }
1885 __pyx_v_key = __pyx_t_6;
1886
1887 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":79
1888 * _key = None if _key is None else pytext_to_utf8(_key)
1889 * cdef char* key = NULL if _key is None else <char*> _key
1890 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_DATA_DEL), key) # <<<<<<<<<<<<<<
1891 *
1892 * def event_callback_call(self, long _desc, object _event_info):
1893 */
1894 if (!(likely(((__pyx_v_self) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_self, __pyx_ptype_6eorepo_9eodefault_EoDefault))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 79; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1895 __pyx_t_1 = __pyx_v_self;
1896 __Pyx_INCREF(__pyx_t_1);
1897 eo_do(__pyx_f_6eorepo_9eodefault__eo_instance_get(((struct __pyx_obj_6eorepo_9eodefault_EoDefault *)__pyx_t_1)), __pyx_f_6eorepo_6eobase_eobase_sub_id(EO_BASE_SUB_ID_DATA_DEL), __pyx_v_key);
1898 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
1899
1900 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1901 goto __pyx_L0;
1902 __pyx_L1_error:;
1903 __Pyx_XDECREF(__pyx_t_1);
1904 __Pyx_XDECREF(__pyx_t_3);
1905 __Pyx_XDECREF(__pyx_t_4);
1906 __Pyx_XDECREF(__pyx_t_5);
1907 __Pyx_AddTraceback("eorepo.eobase.EoBase.data_del", __pyx_clineno, __pyx_lineno, __pyx_filename);
1908 __pyx_r = NULL;
1909 __pyx_L0:;
1910 __Pyx_XDECREF(__pyx_v__key);
1911 __Pyx_XGIVEREF(__pyx_r);
1912 __Pyx_RefNannyFinishContext();
1913 return __pyx_r;
1914}
1915
1916/* Python wrapper */
1917static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_21event_callback_call(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1918static PyMethodDef __pyx_mdef_6eorepo_6eobase_6EoBase_21event_callback_call = {__Pyx_NAMESTR("event_callback_call"), (PyCFunction)__pyx_pw_6eorepo_6eobase_6EoBase_21event_callback_call, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)};
1919static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_21event_callback_call(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1920 PyObject *__pyx_v_self = 0;
1921 long __pyx_v__desc;
1922 PyObject *__pyx_v__event_info = 0;
1923 PyObject *__pyx_r = 0;
1924 __Pyx_RefNannyDeclarations
1925 __Pyx_RefNannySetupContext("event_callback_call (wrapper)", 0);
1926 {
1927 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__self,&__pyx_n_s___desc,&__pyx_n_s___event_info,0};
1928 PyObject* values[3] = {0,0,0};
1929 if (unlikely(__pyx_kwds)) {
1930 Py_ssize_t kw_args;
1931 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
1932 switch (pos_args) {
1933 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
1934 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
1935 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
1936 case 0: break;
1937 default: goto __pyx_L5_argtuple_error;
1938 }
1939 kw_args = PyDict_Size(__pyx_kwds);
1940 switch (pos_args) {
1941 case 0:
1942 if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__self)) != 0)) kw_args--;
1943 else goto __pyx_L5_argtuple_error;
1944 case 1:
1945 if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s___desc)) != 0)) kw_args--;
1946 else {
1947 __Pyx_RaiseArgtupleInvalid("event_callback_call", 1, 3, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1948 }
1949 case 2:
1950 if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s___event_info)) != 0)) kw_args--;
1951 else {
1952 __Pyx_RaiseArgtupleInvalid("event_callback_call", 1, 3, 3, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1953 }
1954 }
1955 if (unlikely(kw_args > 0)) {
1956 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "event_callback_call") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1957 }
1958 } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
1959 goto __pyx_L5_argtuple_error;
1960 } else {
1961 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
1962 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
1963 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
1964 }
1965 __pyx_v_self = values[0];
1966 __pyx_v__desc = __Pyx_PyInt_AsLong(values[1]); if (unlikely((__pyx_v__desc == (long)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1967 __pyx_v__event_info = values[2];
1968 }
1969 goto __pyx_L4_argument_unpacking_done;
1970 __pyx_L5_argtuple_error:;
1971 __Pyx_RaiseArgtupleInvalid("event_callback_call", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1972 __pyx_L3_error:;
1973 __Pyx_AddTraceback("eorepo.eobase.EoBase.event_callback_call", __pyx_clineno, __pyx_lineno, __pyx_filename);
1974 __Pyx_RefNannyFinishContext();
1975 return NULL;
1976 __pyx_L4_argument_unpacking_done:;
1977 __pyx_r = __pyx_pf_6eorepo_6eobase_6EoBase_20event_callback_call(__pyx_self, __pyx_v_self, __pyx_v__desc, __pyx_v__event_info);
1978 __Pyx_RefNannyFinishContext();
1979 return __pyx_r;
1980}
1981
1982/* "/home/yakov/eo_bindings/eorepo/eobase.pxi":81
1983 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_DATA_DEL), key)
1984 *
1985 * def event_callback_call(self, long _desc, object _event_info): # <<<<<<<<<<<<<<
1986 * cdef long desc = <long> _desc
1987 * cdef void* event_info = <void*> _event_info
1988 */
1989
1990static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_20event_callback_call(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, long __pyx_v__desc, PyObject *__pyx_v__event_info) {
1991 long __pyx_v_desc;
1992 void *__pyx_v_event_info;
1993 unsigned char __pyx_v_aborted;
1994 PyObject *__pyx_v_aborted_ = NULL;
1995 PyObject *__pyx_r = NULL;
1996 __Pyx_RefNannyDeclarations
1997 PyObject *__pyx_t_1 = NULL;
1998 int __pyx_lineno = 0;
1999 const char *__pyx_filename = NULL;
2000 int __pyx_clineno = 0;
2001 __Pyx_RefNannySetupContext("event_callback_call", 0);
2002
2003 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":82
2004 *
2005 * def event_callback_call(self, long _desc, object _event_info):
2006 * cdef long desc = <long> _desc # <<<<<<<<<<<<<<
2007 * cdef void* event_info = <void*> _event_info
2008 * cdef unsigned char aborted
2009 */
2010 __pyx_v_desc = ((long)__pyx_v__desc);
2011
2012 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":83
2013 * def event_callback_call(self, long _desc, object _event_info):
2014 * cdef long desc = <long> _desc
2015 * cdef void* event_info = <void*> _event_info # <<<<<<<<<<<<<<
2016 * cdef unsigned char aborted
2017 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_CALLBACK_CALL), desc, event_info, &aborted)
2018 */
2019 __pyx_v_event_info = ((void *)__pyx_v__event_info);
2020
2021 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":85
2022 * cdef void* event_info = <void*> _event_info
2023 * cdef unsigned char aborted
2024 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_CALLBACK_CALL), desc, event_info, &aborted) # <<<<<<<<<<<<<<
2025 * aborted_ = <object>aborted
2026 * return (aborted_)
2027 */
2028 if (!(likely(((__pyx_v_self) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_self, __pyx_ptype_6eorepo_9eodefault_EoDefault))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 85; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2029 __pyx_t_1 = __pyx_v_self;
2030 __Pyx_INCREF(__pyx_t_1);
2031 eo_do(__pyx_f_6eorepo_9eodefault__eo_instance_get(((struct __pyx_obj_6eorepo_9eodefault_EoDefault *)__pyx_t_1)), __pyx_f_6eorepo_6eobase_eobase_sub_id(EO_BASE_SUB_ID_EVENT_CALLBACK_CALL), __pyx_v_desc, __pyx_v_event_info, (&__pyx_v_aborted));
2032 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2033
2034 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":86
2035 * cdef unsigned char aborted
2036 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_CALLBACK_CALL), desc, event_info, &aborted)
2037 * aborted_ = <object>aborted # <<<<<<<<<<<<<<
2038 * return (aborted_)
2039 *
2040 */
2041 __pyx_t_1 = PyInt_FromLong(__pyx_v_aborted); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2042 __Pyx_GOTREF(__pyx_t_1);
2043 __Pyx_INCREF(((PyObject *)__pyx_t_1));
2044 __pyx_v_aborted_ = __pyx_t_1;
2045 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2046
2047 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":87
2048 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_CALLBACK_CALL), desc, event_info, &aborted)
2049 * aborted_ = <object>aborted
2050 * return (aborted_) # <<<<<<<<<<<<<<
2051 *
2052 * def event_callback_priority_add(self, long _desc, int _priority, object _cb):
2053 */
2054 __Pyx_XDECREF(__pyx_r);
2055 __Pyx_INCREF(__pyx_v_aborted_);
2056 __pyx_r = __pyx_v_aborted_;
2057 goto __pyx_L0;
2058
2059 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
2060 goto __pyx_L0;
2061 __pyx_L1_error:;
2062 __Pyx_XDECREF(__pyx_t_1);
2063 __Pyx_AddTraceback("eorepo.eobase.EoBase.event_callback_call", __pyx_clineno, __pyx_lineno, __pyx_filename);
2064 __pyx_r = NULL;
2065 __pyx_L0:;
2066 __Pyx_XDECREF(__pyx_v_aborted_);
2067 __Pyx_XGIVEREF(__pyx_r);
2068 __Pyx_RefNannyFinishContext();
2069 return __pyx_r;
2070}
2071
2072/* Python wrapper */
2073static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_23event_callback_priority_add(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
2074static PyMethodDef __pyx_mdef_6eorepo_6eobase_6EoBase_23event_callback_priority_add = {__Pyx_NAMESTR("event_callback_priority_add"), (PyCFunction)__pyx_pw_6eorepo_6eobase_6EoBase_23event_callback_priority_add, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)};
2075static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_23event_callback_priority_add(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
2076 PyObject *__pyx_v_self = 0;
2077 long __pyx_v__desc;
2078 int __pyx_v__priority;
2079 PyObject *__pyx_v__cb = 0;
2080 PyObject *__pyx_r = 0;
2081 __Pyx_RefNannyDeclarations
2082 __Pyx_RefNannySetupContext("event_callback_priority_add (wrapper)", 0);
2083 {
2084 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__self,&__pyx_n_s___desc,&__pyx_n_s___priority,&__pyx_n_s___cb,0};
2085 PyObject* values[4] = {0,0,0,0};
2086 if (unlikely(__pyx_kwds)) {
2087 Py_ssize_t kw_args;
2088 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
2089 switch (pos_args) {
2090 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
2091 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
2092 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
2093 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
2094 case 0: break;
2095 default: goto __pyx_L5_argtuple_error;
2096 }
2097 kw_args = PyDict_Size(__pyx_kwds);
2098 switch (pos_args) {
2099 case 0:
2100 if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__self)) != 0)) kw_args--;
2101 else goto __pyx_L5_argtuple_error;
2102 case 1:
2103 if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s___desc)) != 0)) kw_args--;
2104 else {
2105 __Pyx_RaiseArgtupleInvalid("event_callback_priority_add", 1, 4, 4, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2106 }
2107 case 2:
2108 if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s___priority)) != 0)) kw_args--;
2109 else {
2110 __Pyx_RaiseArgtupleInvalid("event_callback_priority_add", 1, 4, 4, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2111 }
2112 case 3:
2113 if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s___cb)) != 0)) kw_args--;
2114 else {
2115 __Pyx_RaiseArgtupleInvalid("event_callback_priority_add", 1, 4, 4, 3); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2116 }
2117 }
2118 if (unlikely(kw_args > 0)) {
2119 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "event_callback_priority_add") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2120 }
2121 } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
2122 goto __pyx_L5_argtuple_error;
2123 } else {
2124 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
2125 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
2126 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
2127 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
2128 }
2129 __pyx_v_self = values[0];
2130 __pyx_v__desc = __Pyx_PyInt_AsLong(values[1]); if (unlikely((__pyx_v__desc == (long)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2131 __pyx_v__priority = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v__priority == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2132 __pyx_v__cb = values[3];
2133 }
2134 goto __pyx_L4_argument_unpacking_done;
2135 __pyx_L5_argtuple_error:;
2136 __Pyx_RaiseArgtupleInvalid("event_callback_priority_add", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2137 __pyx_L3_error:;
2138 __Pyx_AddTraceback("eorepo.eobase.EoBase.event_callback_priority_add", __pyx_clineno, __pyx_lineno, __pyx_filename);
2139 __Pyx_RefNannyFinishContext();
2140 return NULL;
2141 __pyx_L4_argument_unpacking_done:;
2142 __pyx_r = __pyx_pf_6eorepo_6eobase_6EoBase_22event_callback_priority_add(__pyx_self, __pyx_v_self, __pyx_v__desc, __pyx_v__priority, __pyx_v__cb);
2143 __Pyx_RefNannyFinishContext();
2144 return __pyx_r;
2145}
2146
2147/* "/home/yakov/eo_bindings/eorepo/eobase.pxi":89
2148 * return (aborted_)
2149 *
2150 * def event_callback_priority_add(self, long _desc, int _priority, object _cb): # <<<<<<<<<<<<<<
2151 * if not callable(_cb[0]):
2152 * raise TypeError("func must be callable")
2153 */
2154
2155static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_22event_callback_priority_add(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, long __pyx_v__desc, int __pyx_v__priority, PyObject *__pyx_v__cb) {
2156 Eo_Event_Cb __pyx_v_cb;
2157 PyObject *__pyx_r = NULL;
2158 __Pyx_RefNannyDeclarations
2159 PyObject *__pyx_t_1 = NULL;
2160 int __pyx_t_2;
2161 int __pyx_t_3;
2162 int __pyx_lineno = 0;
2163 const char *__pyx_filename = NULL;
2164 int __pyx_clineno = 0;
2165 __Pyx_RefNannySetupContext("event_callback_priority_add", 0);
2166
2167 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":90
2168 *
2169 * def event_callback_priority_add(self, long _desc, int _priority, object _cb):
2170 * if not callable(_cb[0]): # <<<<<<<<<<<<<<
2171 * raise TypeError("func must be callable")
2172 * cdef Eo_Event_Cb cb = <Eo_Event_Cb> eodefault._object_callback
2173 */
2174 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v__cb, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 90; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2175 __Pyx_GOTREF(__pyx_t_1);
2176 __pyx_t_2 = __Pyx_PyCallable_Check(__pyx_t_1); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 90; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2177 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2178 __pyx_t_3 = (!__pyx_t_2);
2179 if (__pyx_t_3) {
2180
2181 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":91
2182 * def event_callback_priority_add(self, long _desc, int _priority, object _cb):
2183 * if not callable(_cb[0]):
2184 * raise TypeError("func must be callable") # <<<<<<<<<<<<<<
2185 * cdef Eo_Event_Cb cb = <Eo_Event_Cb> eodefault._object_callback
2186 * Py_INCREF(_cb)
2187 */
2188 __pyx_t_1 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_k_tuple_4), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2189 __Pyx_GOTREF(__pyx_t_1);
2190 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
2191 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2192 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2193 goto __pyx_L3;
2194 }
2195 __pyx_L3:;
2196
2197 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":92
2198 * if not callable(_cb[0]):
2199 * raise TypeError("func must be callable")
2200 * cdef Eo_Event_Cb cb = <Eo_Event_Cb> eodefault._object_callback # <<<<<<<<<<<<<<
2201 * Py_INCREF(_cb)
2202 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_CALLBACK_PRIORITY_ADD), _desc, _priority, cb, <void*>_cb)
2203 */
2204 __pyx_v_cb = ((Eo_Event_Cb)__pyx_f_6eorepo_9eodefault__object_callback);
2205
2206 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":93
2207 * raise TypeError("func must be callable")
2208 * cdef Eo_Event_Cb cb = <Eo_Event_Cb> eodefault._object_callback
2209 * Py_INCREF(_cb) # <<<<<<<<<<<<<<
2210 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_CALLBACK_PRIORITY_ADD), _desc, _priority, cb, <void*>_cb)
2211 *
2212 */
2213 Py_INCREF(__pyx_v__cb);
2214
2215 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":94
2216 * cdef Eo_Event_Cb cb = <Eo_Event_Cb> eodefault._object_callback
2217 * Py_INCREF(_cb)
2218 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_CALLBACK_PRIORITY_ADD), _desc, _priority, cb, <void*>_cb) # <<<<<<<<<<<<<<
2219 *
2220 *
2221 */
2222 if (!(likely(((__pyx_v_self) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_self, __pyx_ptype_6eorepo_9eodefault_EoDefault))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 94; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2223 __pyx_t_1 = __pyx_v_self;
2224 __Pyx_INCREF(__pyx_t_1);
2225 eo_do(__pyx_f_6eorepo_9eodefault__eo_instance_get(((struct __pyx_obj_6eorepo_9eodefault_EoDefault *)__pyx_t_1)), __pyx_f_6eorepo_6eobase_eobase_sub_id(EO_BASE_SUB_ID_EVENT_CALLBACK_PRIORITY_ADD), __pyx_v__desc, __pyx_v__priority, __pyx_v_cb, ((void *)__pyx_v__cb));
2226 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2227
2228 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
2229 goto __pyx_L0;
2230 __pyx_L1_error:;
2231 __Pyx_XDECREF(__pyx_t_1);
2232 __Pyx_AddTraceback("eorepo.eobase.EoBase.event_callback_priority_add", __pyx_clineno, __pyx_lineno, __pyx_filename);
2233 __pyx_r = NULL;
2234 __pyx_L0:;
2235 __Pyx_XGIVEREF(__pyx_r);
2236 __Pyx_RefNannyFinishContext();
2237 return __pyx_r;
2238}
2239
2240/* Python wrapper */
2241static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_25data_set(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
2242static PyMethodDef __pyx_mdef_6eorepo_6eobase_6EoBase_25data_set = {__Pyx_NAMESTR("data_set"), (PyCFunction)__pyx_pw_6eorepo_6eobase_6EoBase_25data_set, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)};
2243static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_25data_set(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
2244 PyObject *__pyx_v_self = 0;
2245 PyObject *__pyx_v__key = 0;
2246 PyObject *__pyx_v__data = 0;
2247 PyObject *__pyx_r = 0;
2248 __Pyx_RefNannyDeclarations
2249 __Pyx_RefNannySetupContext("data_set (wrapper)", 0);
2250 {
2251 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__self,&__pyx_n_s___key,&__pyx_n_s___data,0};
2252 PyObject* values[3] = {0,0,0};
2253 if (unlikely(__pyx_kwds)) {
2254 Py_ssize_t kw_args;
2255 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
2256 switch (pos_args) {
2257 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
2258 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
2259 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
2260 case 0: break;
2261 default: goto __pyx_L5_argtuple_error;
2262 }
2263 kw_args = PyDict_Size(__pyx_kwds);
2264 switch (pos_args) {
2265 case 0:
2266 if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__self)) != 0)) kw_args--;
2267 else goto __pyx_L5_argtuple_error;
2268 case 1:
2269 if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s___key)) != 0)) kw_args--;
2270 else {
2271 __Pyx_RaiseArgtupleInvalid("data_set", 1, 3, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2272 }
2273 case 2:
2274 if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s___data)) != 0)) kw_args--;
2275 else {
2276 __Pyx_RaiseArgtupleInvalid("data_set", 1, 3, 3, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2277 }
2278 }
2279 if (unlikely(kw_args > 0)) {
2280 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "data_set") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2281 }
2282 } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
2283 goto __pyx_L5_argtuple_error;
2284 } else {
2285 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
2286 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
2287 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
2288 }
2289 __pyx_v_self = values[0];
2290 __pyx_v__key = values[1];
2291 __pyx_v__data = values[2];
2292 }
2293 goto __pyx_L4_argument_unpacking_done;
2294 __pyx_L5_argtuple_error:;
2295 __Pyx_RaiseArgtupleInvalid("data_set", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2296 __pyx_L3_error:;
2297 __Pyx_AddTraceback("eorepo.eobase.EoBase.data_set", __pyx_clineno, __pyx_lineno, __pyx_filename);
2298 __Pyx_RefNannyFinishContext();
2299 return NULL;
2300 __pyx_L4_argument_unpacking_done:;
2301 __pyx_r = __pyx_pf_6eorepo_6eobase_6EoBase_24data_set(__pyx_self, __pyx_v_self, __pyx_v__key, __pyx_v__data);
2302 __Pyx_RefNannyFinishContext();
2303 return __pyx_r;
2304}
2305
2306/* "/home/yakov/eo_bindings/eorepo/eobase.pxi":97
2307 *
2308 *
2309 * def data_set(self, object _key, object _data): # <<<<<<<<<<<<<<
2310 * _key = pytext_to_utf8(_key)
2311 * cdef char* key = <char*> _key
2312 */
2313
2314static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_24data_set(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v__key, PyObject *__pyx_v__data) {
2315 char *__pyx_v_key;
2316 PyObject *__pyx_r = NULL;
2317 __Pyx_RefNannyDeclarations
2318 PyObject *__pyx_t_1 = NULL;
2319 PyObject *__pyx_t_2 = NULL;
2320 PyObject *__pyx_t_3 = NULL;
2321 char *__pyx_t_4;
2322 int __pyx_lineno = 0;
2323 const char *__pyx_filename = NULL;
2324 int __pyx_clineno = 0;
2325 __Pyx_RefNannySetupContext("data_set", 0);
2326 __Pyx_INCREF(__pyx_v__key);
2327
2328 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":98
2329 *
2330 * def data_set(self, object _key, object _data):
2331 * _key = pytext_to_utf8(_key) # <<<<<<<<<<<<<<
2332 * cdef char* key = <char*> _key
2333 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_DATA_SET), key, <void*>_data, NULL)
2334 */
2335 __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__pytext_to_utf8); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2336 __Pyx_GOTREF(__pyx_t_1);
2337 __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2338 __Pyx_GOTREF(__pyx_t_2);
2339 __Pyx_INCREF(__pyx_v__key);
2340 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__key);
2341 __Pyx_GIVEREF(__pyx_v__key);
2342 __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2343 __Pyx_GOTREF(__pyx_t_3);
2344 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2345 __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
2346 __Pyx_DECREF(__pyx_v__key);
2347 __pyx_v__key = __pyx_t_3;
2348 __pyx_t_3 = 0;
2349
2350 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":99
2351 * def data_set(self, object _key, object _data):
2352 * _key = pytext_to_utf8(_key)
2353 * cdef char* key = <char*> _key # <<<<<<<<<<<<<<
2354 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_DATA_SET), key, <void*>_data, NULL)
2355 *
2356 */
2357 __pyx_t_4 = PyBytes_AsString(__pyx_v__key); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2358 __pyx_v_key = ((char *)__pyx_t_4);
2359
2360 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":100
2361 * _key = pytext_to_utf8(_key)
2362 * cdef char* key = <char*> _key
2363 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_DATA_SET), key, <void*>_data, NULL) # <<<<<<<<<<<<<<
2364 *
2365 * def _data_set(self, object _key, object _data):
2366 */
2367 if (!(likely(((__pyx_v_self) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_self, __pyx_ptype_6eorepo_9eodefault_EoDefault))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 100; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2368 __pyx_t_3 = __pyx_v_self;
2369 __Pyx_INCREF(__pyx_t_3);
2370 eo_do(__pyx_f_6eorepo_9eodefault__eo_instance_get(((struct __pyx_obj_6eorepo_9eodefault_EoDefault *)__pyx_t_3)), __pyx_f_6eorepo_6eobase_eobase_sub_id(EO_BASE_SUB_ID_DATA_SET), __pyx_v_key, ((void *)__pyx_v__data), NULL);
2371 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
2372
2373 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
2374 goto __pyx_L0;
2375 __pyx_L1_error:;
2376 __Pyx_XDECREF(__pyx_t_1);
2377 __Pyx_XDECREF(__pyx_t_2);
2378 __Pyx_XDECREF(__pyx_t_3);
2379 __Pyx_AddTraceback("eorepo.eobase.EoBase.data_set", __pyx_clineno, __pyx_lineno, __pyx_filename);
2380 __pyx_r = NULL;
2381 __pyx_L0:;
2382 __Pyx_XDECREF(__pyx_v__key);
2383 __Pyx_XGIVEREF(__pyx_r);
2384 __Pyx_RefNannyFinishContext();
2385 return __pyx_r;
2386}
2387
2388/* Python wrapper */
2389static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_27_data_set(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
2390static PyMethodDef __pyx_mdef_6eorepo_6eobase_6EoBase_27_data_set = {__Pyx_NAMESTR("_data_set"), (PyCFunction)__pyx_pw_6eorepo_6eobase_6EoBase_27_data_set, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)};
2391static PyObject *__pyx_pw_6eorepo_6eobase_6EoBase_27_data_set(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
2392 PyObject *__pyx_v_self = 0;
2393 PyObject *__pyx_v__key = 0;
2394 PyObject *__pyx_v__data = 0;
2395 PyObject *__pyx_r = 0;
2396 __Pyx_RefNannyDeclarations
2397 __Pyx_RefNannySetupContext("_data_set (wrapper)", 0);
2398 {
2399 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__self,&__pyx_n_s___key,&__pyx_n_s___data,0};
2400 PyObject* values[3] = {0,0,0};
2401 if (unlikely(__pyx_kwds)) {
2402 Py_ssize_t kw_args;
2403 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
2404 switch (pos_args) {
2405 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
2406 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
2407 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
2408 case 0: break;
2409 default: goto __pyx_L5_argtuple_error;
2410 }
2411 kw_args = PyDict_Size(__pyx_kwds);
2412 switch (pos_args) {
2413 case 0:
2414 if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__self)) != 0)) kw_args--;
2415 else goto __pyx_L5_argtuple_error;
2416 case 1:
2417 if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s___key)) != 0)) kw_args--;
2418 else {
2419 __Pyx_RaiseArgtupleInvalid("_data_set", 1, 3, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2420 }
2421 case 2:
2422 if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s___data)) != 0)) kw_args--;
2423 else {
2424 __Pyx_RaiseArgtupleInvalid("_data_set", 1, 3, 3, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2425 }
2426 }
2427 if (unlikely(kw_args > 0)) {
2428 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_data_set") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2429 }
2430 } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
2431 goto __pyx_L5_argtuple_error;
2432 } else {
2433 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
2434 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
2435 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
2436 }
2437 __pyx_v_self = values[0];
2438 __pyx_v__key = values[1];
2439 __pyx_v__data = values[2];
2440 }
2441 goto __pyx_L4_argument_unpacking_done;
2442 __pyx_L5_argtuple_error:;
2443 __Pyx_RaiseArgtupleInvalid("_data_set", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2444 __pyx_L3_error:;
2445 __Pyx_AddTraceback("eorepo.eobase.EoBase._data_set", __pyx_clineno, __pyx_lineno, __pyx_filename);
2446 __Pyx_RefNannyFinishContext();
2447 return NULL;
2448 __pyx_L4_argument_unpacking_done:;
2449 __pyx_r = __pyx_pf_6eorepo_6eobase_6EoBase_26_data_set(__pyx_self, __pyx_v_self, __pyx_v__key, __pyx_v__data);
2450 __Pyx_RefNannyFinishContext();
2451 return __pyx_r;
2452}
2453
2454/* "/home/yakov/eo_bindings/eorepo/eobase.pxi":102
2455 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_DATA_SET), key, <void*>_data, NULL)
2456 *
2457 * def _data_set(self, object _key, object _data): # <<<<<<<<<<<<<<
2458 * _key = pytext_to_utf8(_key)
2459 * cdef char* key = <char*> _key
2460 */
2461
2462static PyObject *__pyx_pf_6eorepo_6eobase_6EoBase_26_data_set(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v__key, PyObject *__pyx_v__data) {
2463 char *__pyx_v_key;
2464 PyObject *__pyx_r = NULL;
2465 __Pyx_RefNannyDeclarations
2466 PyObject *__pyx_t_1 = NULL;
2467 PyObject *__pyx_t_2 = NULL;
2468 PyObject *__pyx_t_3 = NULL;
2469 char *__pyx_t_4;
2470 int __pyx_lineno = 0;
2471 const char *__pyx_filename = NULL;
2472 int __pyx_clineno = 0;
2473 __Pyx_RefNannySetupContext("_data_set", 0);
2474 __Pyx_INCREF(__pyx_v__key);
2475
2476 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":103
2477 *
2478 * def _data_set(self, object _key, object _data):
2479 * _key = pytext_to_utf8(_key) # <<<<<<<<<<<<<<
2480 * cdef char* key = <char*> _key
2481 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_DATA_SET), key, <void*>_data, NULL)
2482 */
2483 __pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__pytext_to_utf8); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2484 __Pyx_GOTREF(__pyx_t_1);
2485 __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2486 __Pyx_GOTREF(__pyx_t_2);
2487 __Pyx_INCREF(__pyx_v__key);
2488 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__key);
2489 __Pyx_GIVEREF(__pyx_v__key);
2490 __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2491 __Pyx_GOTREF(__pyx_t_3);
2492 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2493 __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
2494 __Pyx_DECREF(__pyx_v__key);
2495 __pyx_v__key = __pyx_t_3;
2496 __pyx_t_3 = 0;
2497
2498 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":104
2499 * def _data_set(self, object _key, object _data):
2500 * _key = pytext_to_utf8(_key)
2501 * cdef char* key = <char*> _key # <<<<<<<<<<<<<<
2502 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_DATA_SET), key, <void*>_data, NULL)
2503 *
2504 */
2505 __pyx_t_4 = PyBytes_AsString(__pyx_v__key); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2506 __pyx_v_key = ((char *)__pyx_t_4);
2507
2508 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":105
2509 * _key = pytext_to_utf8(_key)
2510 * cdef char* key = <char*> _key
2511 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_DATA_SET), key, <void*>_data, NULL) # <<<<<<<<<<<<<<
2512 *
2513 *
2514 */
2515 if (!(likely(((__pyx_v_self) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_self, __pyx_ptype_6eorepo_9eodefault_EoDefault))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 105; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2516 __pyx_t_3 = __pyx_v_self;
2517 __Pyx_INCREF(__pyx_t_3);
2518 eo_do(__pyx_f_6eorepo_9eodefault__eo_instance_get(((struct __pyx_obj_6eorepo_9eodefault_EoDefault *)__pyx_t_3)), __pyx_f_6eorepo_6eobase_eobase_sub_id(EO_BASE_SUB_ID_DATA_SET), __pyx_v_key, ((void *)__pyx_v__data), NULL);
2519 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
2520
2521 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
2522 goto __pyx_L0;
2523 __pyx_L1_error:;
2524 __Pyx_XDECREF(__pyx_t_1);
2525 __Pyx_XDECREF(__pyx_t_2);
2526 __Pyx_XDECREF(__pyx_t_3);
2527 __Pyx_AddTraceback("eorepo.eobase.EoBase._data_set", __pyx_clineno, __pyx_lineno, __pyx_filename);
2528 __pyx_r = NULL;
2529 __pyx_L0:;
2530 __Pyx_XDECREF(__pyx_v__key);
2531 __Pyx_XGIVEREF(__pyx_r);
2532 __Pyx_RefNannyFinishContext();
2533 return __pyx_r;
2534}
2535
2536static PyMethodDef __pyx_methods[] = {
2537 {0, 0, 0, 0}
2538};
2539
2540#if PY_MAJOR_VERSION >= 3
2541static struct PyModuleDef __pyx_moduledef = {
2542 PyModuleDef_HEAD_INIT,
2543 __Pyx_NAMESTR("eobase"),
2544 0, /* m_doc */
2545 -1, /* m_size */
2546 __pyx_methods /* m_methods */,
2547 NULL, /* m_reload */
2548 NULL, /* m_traverse */
2549 NULL, /* m_clear */
2550 NULL /* m_free */
2551};
2552#endif
2553
2554static __Pyx_StringTabEntry __pyx_string_tab[] = {
2555 {&__pyx_kp_s_1, __pyx_k_1, sizeof(__pyx_k_1), 0, 0, 1, 0},
2556 {&__pyx_n_s_16, __pyx_k_16, sizeof(__pyx_k_16), 0, 0, 1, 1},
2557 {&__pyx_kp_s_3, __pyx_k_3, sizeof(__pyx_k_3), 0, 0, 1, 0},
2558 {&__pyx_n_s_31, __pyx_k_31, sizeof(__pyx_k_31), 0, 0, 1, 1},
2559 {&__pyx_n_s_5, __pyx_k_5, sizeof(__pyx_k_5), 0, 0, 1, 1},
2560 {&__pyx_kp_s_8, __pyx_k_8, sizeof(__pyx_k_8), 0, 0, 1, 0},
2561 {&__pyx_n_s_9, __pyx_k_9, sizeof(__pyx_k_9), 0, 0, 1, 1},
2562 {&__pyx_n_s__CALLBACK_ADD, __pyx_k__CALLBACK_ADD, sizeof(__pyx_k__CALLBACK_ADD), 0, 0, 1, 1},
2563 {&__pyx_n_s__CALLBACK_DEL, __pyx_k__CALLBACK_DEL, sizeof(__pyx_k__CALLBACK_DEL), 0, 0, 1, 1},
2564 {&__pyx_n_s__DEL, __pyx_k__DEL, sizeof(__pyx_k__DEL), 0, 0, 1, 1},
2565 {&__pyx_n_s__EoBase, __pyx_k__EoBase, sizeof(__pyx_k__EoBase), 0, 0, 1, 1},
2566 {&__pyx_n_s__EoDefault, __pyx_k__EoDefault, sizeof(__pyx_k__EoDefault), 0, 0, 1, 1},
2567 {&__pyx_n_s__TypeError, __pyx_k__TypeError, sizeof(__pyx_k__TypeError), 0, 0, 1, 1},
2568 {&__pyx_n_s____class__, __pyx_k____class__, sizeof(__pyx_k____class__), 0, 0, 1, 1},
2569 {&__pyx_n_s____init__, __pyx_k____init__, sizeof(__pyx_k____init__), 0, 0, 1, 1},
2570 {&__pyx_n_s____main__, __pyx_k____main__, sizeof(__pyx_k____main__), 0, 0, 1, 1},
2571 {&__pyx_n_s____name__, __pyx_k____name__, sizeof(__pyx_k____name__), 0, 0, 1, 1},
2572 {&__pyx_n_s____test__, __pyx_k____test__, sizeof(__pyx_k____test__), 0, 0, 1, 1},
2573 {&__pyx_n_s___cb, __pyx_k___cb, sizeof(__pyx_k___cb), 0, 0, 1, 1},
2574 {&__pyx_n_s___data, __pyx_k___data, sizeof(__pyx_k___data), 0, 0, 1, 1},
2575 {&__pyx_n_s___data_set, __pyx_k___data_set, sizeof(__pyx_k___data_set), 0, 0, 1, 1},
2576 {&__pyx_n_s___desc, __pyx_k___desc, sizeof(__pyx_k___desc), 0, 0, 1, 1},
2577 {&__pyx_n_s___event_info, __pyx_k___event_info, sizeof(__pyx_k___event_info), 0, 0, 1, 1},
2578 {&__pyx_n_s___func, __pyx_k___func, sizeof(__pyx_k___func), 0, 0, 1, 1},
2579 {&__pyx_n_s___key, __pyx_k___key, sizeof(__pyx_k___key), 0, 0, 1, 1},
2580 {&__pyx_n_s___priority, __pyx_k___priority, sizeof(__pyx_k___priority), 0, 0, 1, 1},
2581 {&__pyx_n_s__aborted, __pyx_k__aborted, sizeof(__pyx_k__aborted), 0, 0, 1, 1},
2582 {&__pyx_n_s__aborted_, __pyx_k__aborted_, sizeof(__pyx_k__aborted_), 0, 0, 1, 1},
2583 {&__pyx_n_s__cb, __pyx_k__cb, sizeof(__pyx_k__cb), 0, 0, 1, 1},
2584 {&__pyx_n_s__data, __pyx_k__data, sizeof(__pyx_k__data), 0, 0, 1, 1},
2585 {&__pyx_n_s__data_, __pyx_k__data_, sizeof(__pyx_k__data_), 0, 0, 1, 1},
2586 {&__pyx_n_s__data_del, __pyx_k__data_del, sizeof(__pyx_k__data_del), 0, 0, 1, 1},
2587 {&__pyx_n_s__data_get, __pyx_k__data_get, sizeof(__pyx_k__data_get), 0, 0, 1, 1},
2588 {&__pyx_n_s__data_set, __pyx_k__data_set, sizeof(__pyx_k__data_set), 0, 0, 1, 1},
2589 {&__pyx_n_s__desc, __pyx_k__desc, sizeof(__pyx_k__desc), 0, 0, 1, 1},
2590 {&__pyx_n_s__eodefault, __pyx_k__eodefault, sizeof(__pyx_k__eodefault), 0, 0, 1, 1},
2591 {&__pyx_n_s__event_callback_call, __pyx_k__event_callback_call, sizeof(__pyx_k__event_callback_call), 0, 0, 1, 1},
2592 {&__pyx_n_s__event_callback_del, __pyx_k__event_callback_del, sizeof(__pyx_k__event_callback_del), 0, 0, 1, 1},
2593 {&__pyx_n_s__event_freeze, __pyx_k__event_freeze, sizeof(__pyx_k__event_freeze), 0, 0, 1, 1},
2594 {&__pyx_n_s__event_freeze_get, __pyx_k__event_freeze_get, sizeof(__pyx_k__event_freeze_get), 0, 0, 1, 1},
2595 {&__pyx_n_s__event_global_freeze, __pyx_k__event_global_freeze, sizeof(__pyx_k__event_global_freeze), 0, 0, 1, 1},
2596 {&__pyx_n_s__event_global_thaw, __pyx_k__event_global_thaw, sizeof(__pyx_k__event_global_thaw), 0, 0, 1, 1},
2597 {&__pyx_n_s__event_info, __pyx_k__event_info, sizeof(__pyx_k__event_info), 0, 0, 1, 1},
2598 {&__pyx_n_s__event_thaw, __pyx_k__event_thaw, sizeof(__pyx_k__event_thaw), 0, 0, 1, 1},
2599 {&__pyx_n_s__exit, __pyx_k__exit, sizeof(__pyx_k__exit), 0, 0, 1, 1},
2600 {&__pyx_n_s__fcount, __pyx_k__fcount, sizeof(__pyx_k__fcount), 0, 0, 1, 1},
2601 {&__pyx_n_s__fcount_, __pyx_k__fcount_, sizeof(__pyx_k__fcount_), 0, 0, 1, 1},
2602 {&__pyx_n_s__func, __pyx_k__func, sizeof(__pyx_k__func), 0, 0, 1, 1},
2603 {&__pyx_n_s__instantiateable, __pyx_k__instantiateable, sizeof(__pyx_k__instantiateable), 0, 0, 1, 1},
2604 {&__pyx_n_s__key, __pyx_k__key, sizeof(__pyx_k__key), 0, 0, 1, 1},
2605 {&__pyx_n_s__parent, __pyx_k__parent, sizeof(__pyx_k__parent), 0, 0, 1, 1},
2606 {&__pyx_n_s__pytext_to_utf8, __pyx_k__pytext_to_utf8, sizeof(__pyx_k__pytext_to_utf8), 0, 0, 1, 1},
2607 {&__pyx_n_s__self, __pyx_k__self, sizeof(__pyx_k__self), 0, 0, 1, 1},
2608 {&__pyx_n_s__staticmethod, __pyx_k__staticmethod, sizeof(__pyx_k__staticmethod), 0, 0, 1, 1},
2609 {0, 0, 0, 0, 0, 0, 0}
2610};
2611static int __Pyx_InitCachedBuiltins(void) {
2612 __pyx_builtin_staticmethod = __Pyx_GetName(__pyx_b, __pyx_n_s__staticmethod); if (!__pyx_builtin_staticmethod) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2613 __pyx_builtin_exit = __Pyx_GetName(__pyx_b, __pyx_n_s__exit); if (!__pyx_builtin_exit) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2614 __pyx_builtin_TypeError = __Pyx_GetName(__pyx_b, __pyx_n_s__TypeError); if (!__pyx_builtin_TypeError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2615 return 0;
2616 __pyx_L1_error:;
2617 return -1;
2618}
2619
2620static int __Pyx_InitCachedConstants(void) {
2621 __Pyx_RefNannyDeclarations
2622 __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);
2623
2624 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":33
2625 * if not instantiateable:
2626 * print "Class '%s' is not instantiate-able. Aborting."%(self.__class__.__name__)
2627 * exit(1) # <<<<<<<<<<<<<<
2628 *
2629 *
2630 */
2631 __pyx_k_tuple_2 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2632 __Pyx_GOTREF(__pyx_k_tuple_2);
2633 __Pyx_INCREF(__pyx_int_1);
2634 PyTuple_SET_ITEM(__pyx_k_tuple_2, 0, __pyx_int_1);
2635 __Pyx_GIVEREF(__pyx_int_1);
2636 __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_2));
2637
2638 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":91
2639 * def event_callback_priority_add(self, long _desc, int _priority, object _cb):
2640 * if not callable(_cb[0]):
2641 * raise TypeError("func must be callable") # <<<<<<<<<<<<<<
2642 * cdef Eo_Event_Cb cb = <Eo_Event_Cb> eodefault._object_callback
2643 * Py_INCREF(_cb)
2644 */
2645 __pyx_k_tuple_4 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2646 __Pyx_GOTREF(__pyx_k_tuple_4);
2647 __Pyx_INCREF(((PyObject *)__pyx_kp_s_3));
2648 PyTuple_SET_ITEM(__pyx_k_tuple_4, 0, ((PyObject *)__pyx_kp_s_3));
2649 __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_3));
2650 __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_4));
2651
2652 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":23
2653 * CALLBACK_ADD = <long>eobase.EO_EV_CALLBACK_ADD
2654 *
2655 * def event_thaw(self): # <<<<<<<<<<<<<<
2656 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_THAW))
2657 *
2658 */
2659 __pyx_k_tuple_6 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2660 __Pyx_GOTREF(__pyx_k_tuple_6);
2661 __Pyx_INCREF(((PyObject *)__pyx_n_s__self));
2662 PyTuple_SET_ITEM(__pyx_k_tuple_6, 0, ((PyObject *)__pyx_n_s__self));
2663 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__self));
2664 __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_6));
2665 __pyx_k_codeobj_7 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_6, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_8, __pyx_n_s__event_thaw, 23, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2666
2667 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":26
2668 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_THAW))
2669 *
2670 * def event_freeze(self): # <<<<<<<<<<<<<<
2671 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_FREEZE))
2672 *
2673 */
2674 __pyx_k_tuple_10 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2675 __Pyx_GOTREF(__pyx_k_tuple_10);
2676 __Pyx_INCREF(((PyObject *)__pyx_n_s__self));
2677 PyTuple_SET_ITEM(__pyx_k_tuple_10, 0, ((PyObject *)__pyx_n_s__self));
2678 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__self));
2679 __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_10));
2680 __pyx_k_codeobj_11 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_10, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_8, __pyx_n_s__event_freeze, 26, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2681
2682 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":29
2683 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_FREEZE))
2684 *
2685 * def __init__(self, EoDefault parent): # <<<<<<<<<<<<<<
2686 * instantiateable = False
2687 * if not instantiateable:
2688 */
2689 __pyx_k_tuple_12 = PyTuple_New(3); if (unlikely(!__pyx_k_tuple_12)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2690 __Pyx_GOTREF(__pyx_k_tuple_12);
2691 __Pyx_INCREF(((PyObject *)__pyx_n_s__self));
2692 PyTuple_SET_ITEM(__pyx_k_tuple_12, 0, ((PyObject *)__pyx_n_s__self));
2693 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__self));
2694 __Pyx_INCREF(((PyObject *)__pyx_n_s__parent));
2695 PyTuple_SET_ITEM(__pyx_k_tuple_12, 1, ((PyObject *)__pyx_n_s__parent));
2696 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__parent));
2697 __Pyx_INCREF(((PyObject *)__pyx_n_s__instantiateable));
2698 PyTuple_SET_ITEM(__pyx_k_tuple_12, 2, ((PyObject *)__pyx_n_s__instantiateable));
2699 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__instantiateable));
2700 __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_12));
2701 __pyx_k_codeobj_13 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_12, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_8, __pyx_n_s____init__, 29, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_13)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2702
2703 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":37
2704 *
2705 * @staticmethod
2706 * def event_global_freeze_get(): # <<<<<<<<<<<<<<
2707 * cdef int fcount
2708 * eodefault.eo_class_do(eobase.eo_base_class_get(), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_GLOBAL_FREEZE_GET), &fcount)
2709 */
2710 __pyx_k_tuple_14 = PyTuple_New(2); if (unlikely(!__pyx_k_tuple_14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2711 __Pyx_GOTREF(__pyx_k_tuple_14);
2712 __Pyx_INCREF(((PyObject *)__pyx_n_s__fcount));
2713 PyTuple_SET_ITEM(__pyx_k_tuple_14, 0, ((PyObject *)__pyx_n_s__fcount));
2714 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__fcount));
2715 __Pyx_INCREF(((PyObject *)__pyx_n_s__fcount_));
2716 PyTuple_SET_ITEM(__pyx_k_tuple_14, 1, ((PyObject *)__pyx_n_s__fcount_));
2717 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__fcount_));
2718 __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_14));
2719 __pyx_k_codeobj_15 = (PyObject*)__Pyx_PyCode_New(0, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_14, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_8, __pyx_n_s_16, 37, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_15)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2720
2721 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":45
2722 *
2723 * @staticmethod
2724 * def event_global_freeze(): # <<<<<<<<<<<<<<
2725 * eodefault.eo_class_do(eobase.eo_base_class_get(), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_GLOBAL_FREEZE))
2726 *
2727 */
2728 __pyx_k_codeobj_17 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_8, __pyx_n_s__event_global_freeze, 45, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_17)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2729
2730 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":49
2731 *
2732 *
2733 * def data_get(self, object _key): # <<<<<<<<<<<<<<
2734 * _key = None if _key is None else pytext_to_utf8(_key)
2735 * cdef char* key = NULL if _key is None else <char*> _key
2736 */
2737 __pyx_k_tuple_18 = PyTuple_New(5); if (unlikely(!__pyx_k_tuple_18)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2738 __Pyx_GOTREF(__pyx_k_tuple_18);
2739 __Pyx_INCREF(((PyObject *)__pyx_n_s__self));
2740 PyTuple_SET_ITEM(__pyx_k_tuple_18, 0, ((PyObject *)__pyx_n_s__self));
2741 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__self));
2742 __Pyx_INCREF(((PyObject *)__pyx_n_s___key));
2743 PyTuple_SET_ITEM(__pyx_k_tuple_18, 1, ((PyObject *)__pyx_n_s___key));
2744 __Pyx_GIVEREF(((PyObject *)__pyx_n_s___key));
2745 __Pyx_INCREF(((PyObject *)__pyx_n_s__key));
2746 PyTuple_SET_ITEM(__pyx_k_tuple_18, 2, ((PyObject *)__pyx_n_s__key));
2747 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__key));
2748 __Pyx_INCREF(((PyObject *)__pyx_n_s__data));
2749 PyTuple_SET_ITEM(__pyx_k_tuple_18, 3, ((PyObject *)__pyx_n_s__data));
2750 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__data));
2751 __Pyx_INCREF(((PyObject *)__pyx_n_s__data_));
2752 PyTuple_SET_ITEM(__pyx_k_tuple_18, 4, ((PyObject *)__pyx_n_s__data_));
2753 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__data_));
2754 __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_18));
2755 __pyx_k_codeobj_19 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_18, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_8, __pyx_n_s__data_get, 49, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_19)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2756
2757 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":57
2758 * return (data_)
2759 *
2760 * def event_callback_del(self, long _desc, object _func): # <<<<<<<<<<<<<<
2761 * cdef Eo_Event_Cb func = <Eo_Event_Cb> eodefault._object_callback
2762 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_CALLBACK_DEL), _desc, func, <void*>_func)
2763 */
2764 __pyx_k_tuple_20 = PyTuple_New(4); if (unlikely(!__pyx_k_tuple_20)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2765 __Pyx_GOTREF(__pyx_k_tuple_20);
2766 __Pyx_INCREF(((PyObject *)__pyx_n_s__self));
2767 PyTuple_SET_ITEM(__pyx_k_tuple_20, 0, ((PyObject *)__pyx_n_s__self));
2768 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__self));
2769 __Pyx_INCREF(((PyObject *)__pyx_n_s___desc));
2770 PyTuple_SET_ITEM(__pyx_k_tuple_20, 1, ((PyObject *)__pyx_n_s___desc));
2771 __Pyx_GIVEREF(((PyObject *)__pyx_n_s___desc));
2772 __Pyx_INCREF(((PyObject *)__pyx_n_s___func));
2773 PyTuple_SET_ITEM(__pyx_k_tuple_20, 2, ((PyObject *)__pyx_n_s___func));
2774 __Pyx_GIVEREF(((PyObject *)__pyx_n_s___func));
2775 __Pyx_INCREF(((PyObject *)__pyx_n_s__func));
2776 PyTuple_SET_ITEM(__pyx_k_tuple_20, 3, ((PyObject *)__pyx_n_s__func));
2777 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__func));
2778 __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_20));
2779 __pyx_k_codeobj_21 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_20, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_8, __pyx_n_s__event_callback_del, 57, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_21)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2780
2781 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":65
2782 *
2783 *
2784 * def event_freeze_get(self): # <<<<<<<<<<<<<<
2785 * cdef int fcount
2786 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_FREEZE_GET), &fcount)
2787 */
2788 __pyx_k_tuple_22 = PyTuple_New(3); if (unlikely(!__pyx_k_tuple_22)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 65; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2789 __Pyx_GOTREF(__pyx_k_tuple_22);
2790 __Pyx_INCREF(((PyObject *)__pyx_n_s__self));
2791 PyTuple_SET_ITEM(__pyx_k_tuple_22, 0, ((PyObject *)__pyx_n_s__self));
2792 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__self));
2793 __Pyx_INCREF(((PyObject *)__pyx_n_s__fcount));
2794 PyTuple_SET_ITEM(__pyx_k_tuple_22, 1, ((PyObject *)__pyx_n_s__fcount));
2795 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__fcount));
2796 __Pyx_INCREF(((PyObject *)__pyx_n_s__fcount_));
2797 PyTuple_SET_ITEM(__pyx_k_tuple_22, 2, ((PyObject *)__pyx_n_s__fcount_));
2798 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__fcount_));
2799 __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_22));
2800 __pyx_k_codeobj_23 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_22, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_8, __pyx_n_s__event_freeze_get, 65, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_23)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 65; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2801
2802 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":72
2803 *
2804 * @staticmethod
2805 * def event_global_thaw(): # <<<<<<<<<<<<<<
2806 * eodefault.eo_class_do(eobase.eo_base_class_get(), eobase_sub_id(eobase.EO_BASE_SUB_ID_EVENT_GLOBAL_THAW))
2807 *
2808 */
2809 __pyx_k_codeobj_24 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_8, __pyx_n_s__event_global_thaw, 72, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_24)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2810
2811 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":76
2812 *
2813 *
2814 * def data_del(self, object _key): # <<<<<<<<<<<<<<
2815 * _key = None if _key is None else pytext_to_utf8(_key)
2816 * cdef char* key = NULL if _key is None else <char*> _key
2817 */
2818 __pyx_k_tuple_25 = PyTuple_New(3); if (unlikely(!__pyx_k_tuple_25)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2819 __Pyx_GOTREF(__pyx_k_tuple_25);
2820 __Pyx_INCREF(((PyObject *)__pyx_n_s__self));
2821 PyTuple_SET_ITEM(__pyx_k_tuple_25, 0, ((PyObject *)__pyx_n_s__self));
2822 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__self));
2823 __Pyx_INCREF(((PyObject *)__pyx_n_s___key));
2824 PyTuple_SET_ITEM(__pyx_k_tuple_25, 1, ((PyObject *)__pyx_n_s___key));
2825 __Pyx_GIVEREF(((PyObject *)__pyx_n_s___key));
2826 __Pyx_INCREF(((PyObject *)__pyx_n_s__key));
2827 PyTuple_SET_ITEM(__pyx_k_tuple_25, 2, ((PyObject *)__pyx_n_s__key));
2828 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__key));
2829 __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_25));
2830 __pyx_k_codeobj_26 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_25, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_8, __pyx_n_s__data_del, 76, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_26)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2831
2832 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":81
2833 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_DATA_DEL), key)
2834 *
2835 * def event_callback_call(self, long _desc, object _event_info): # <<<<<<<<<<<<<<
2836 * cdef long desc = <long> _desc
2837 * cdef void* event_info = <void*> _event_info
2838 */
2839 __pyx_k_tuple_27 = PyTuple_New(7); if (unlikely(!__pyx_k_tuple_27)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2840 __Pyx_GOTREF(__pyx_k_tuple_27);
2841 __Pyx_INCREF(((PyObject *)__pyx_n_s__self));
2842 PyTuple_SET_ITEM(__pyx_k_tuple_27, 0, ((PyObject *)__pyx_n_s__self));
2843 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__self));
2844 __Pyx_INCREF(((PyObject *)__pyx_n_s___desc));
2845 PyTuple_SET_ITEM(__pyx_k_tuple_27, 1, ((PyObject *)__pyx_n_s___desc));
2846 __Pyx_GIVEREF(((PyObject *)__pyx_n_s___desc));
2847 __Pyx_INCREF(((PyObject *)__pyx_n_s___event_info));
2848 PyTuple_SET_ITEM(__pyx_k_tuple_27, 2, ((PyObject *)__pyx_n_s___event_info));
2849 __Pyx_GIVEREF(((PyObject *)__pyx_n_s___event_info));
2850 __Pyx_INCREF(((PyObject *)__pyx_n_s__desc));
2851 PyTuple_SET_ITEM(__pyx_k_tuple_27, 3, ((PyObject *)__pyx_n_s__desc));
2852 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__desc));
2853 __Pyx_INCREF(((PyObject *)__pyx_n_s__event_info));
2854 PyTuple_SET_ITEM(__pyx_k_tuple_27, 4, ((PyObject *)__pyx_n_s__event_info));
2855 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__event_info));
2856 __Pyx_INCREF(((PyObject *)__pyx_n_s__aborted));
2857 PyTuple_SET_ITEM(__pyx_k_tuple_27, 5, ((PyObject *)__pyx_n_s__aborted));
2858 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__aborted));
2859 __Pyx_INCREF(((PyObject *)__pyx_n_s__aborted_));
2860 PyTuple_SET_ITEM(__pyx_k_tuple_27, 6, ((PyObject *)__pyx_n_s__aborted_));
2861 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__aborted_));
2862 __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_27));
2863 __pyx_k_codeobj_28 = (PyObject*)__Pyx_PyCode_New(3, 0, 7, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_27, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_8, __pyx_n_s__event_callback_call, 81, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_28)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2864
2865 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":89
2866 * return (aborted_)
2867 *
2868 * def event_callback_priority_add(self, long _desc, int _priority, object _cb): # <<<<<<<<<<<<<<
2869 * if not callable(_cb[0]):
2870 * raise TypeError("func must be callable")
2871 */
2872 __pyx_k_tuple_29 = PyTuple_New(5); if (unlikely(!__pyx_k_tuple_29)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2873 __Pyx_GOTREF(__pyx_k_tuple_29);
2874 __Pyx_INCREF(((PyObject *)__pyx_n_s__self));
2875 PyTuple_SET_ITEM(__pyx_k_tuple_29, 0, ((PyObject *)__pyx_n_s__self));
2876 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__self));
2877 __Pyx_INCREF(((PyObject *)__pyx_n_s___desc));
2878 PyTuple_SET_ITEM(__pyx_k_tuple_29, 1, ((PyObject *)__pyx_n_s___desc));
2879 __Pyx_GIVEREF(((PyObject *)__pyx_n_s___desc));
2880 __Pyx_INCREF(((PyObject *)__pyx_n_s___priority));
2881 PyTuple_SET_ITEM(__pyx_k_tuple_29, 2, ((PyObject *)__pyx_n_s___priority));
2882 __Pyx_GIVEREF(((PyObject *)__pyx_n_s___priority));
2883 __Pyx_INCREF(((PyObject *)__pyx_n_s___cb));
2884 PyTuple_SET_ITEM(__pyx_k_tuple_29, 3, ((PyObject *)__pyx_n_s___cb));
2885 __Pyx_GIVEREF(((PyObject *)__pyx_n_s___cb));
2886 __Pyx_INCREF(((PyObject *)__pyx_n_s__cb));
2887 PyTuple_SET_ITEM(__pyx_k_tuple_29, 4, ((PyObject *)__pyx_n_s__cb));
2888 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__cb));
2889 __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_29));
2890 __pyx_k_codeobj_30 = (PyObject*)__Pyx_PyCode_New(4, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_29, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_8, __pyx_n_s_31, 89, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_30)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2891
2892 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":97
2893 *
2894 *
2895 * def data_set(self, object _key, object _data): # <<<<<<<<<<<<<<
2896 * _key = pytext_to_utf8(_key)
2897 * cdef char* key = <char*> _key
2898 */
2899 __pyx_k_tuple_32 = PyTuple_New(4); if (unlikely(!__pyx_k_tuple_32)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2900 __Pyx_GOTREF(__pyx_k_tuple_32);
2901 __Pyx_INCREF(((PyObject *)__pyx_n_s__self));
2902 PyTuple_SET_ITEM(__pyx_k_tuple_32, 0, ((PyObject *)__pyx_n_s__self));
2903 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__self));
2904 __Pyx_INCREF(((PyObject *)__pyx_n_s___key));
2905 PyTuple_SET_ITEM(__pyx_k_tuple_32, 1, ((PyObject *)__pyx_n_s___key));
2906 __Pyx_GIVEREF(((PyObject *)__pyx_n_s___key));
2907 __Pyx_INCREF(((PyObject *)__pyx_n_s___data));
2908 PyTuple_SET_ITEM(__pyx_k_tuple_32, 2, ((PyObject *)__pyx_n_s___data));
2909 __Pyx_GIVEREF(((PyObject *)__pyx_n_s___data));
2910 __Pyx_INCREF(((PyObject *)__pyx_n_s__key));
2911 PyTuple_SET_ITEM(__pyx_k_tuple_32, 3, ((PyObject *)__pyx_n_s__key));
2912 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__key));
2913 __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_32));
2914 __pyx_k_codeobj_33 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_32, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_8, __pyx_n_s__data_set, 97, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2915
2916 /* "/home/yakov/eo_bindings/eorepo/eobase.pxi":102
2917 * eodefault.eo_do(eodefault._eo_instance_get(self), eobase_sub_id(eobase.EO_BASE_SUB_ID_DATA_SET), key, <void*>_data, NULL)
2918 *
2919 * def _data_set(self, object _key, object _data): # <<<<<<<<<<<<<<
2920 * _key = pytext_to_utf8(_key)
2921 * cdef char* key = <char*> _key
2922 */
2923 __pyx_k_tuple_34 = PyTuple_New(4); if (unlikely(!__pyx_k_tuple_34)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2924 __Pyx_GOTREF(__pyx_k_tuple_34);
2925 __Pyx_INCREF(((PyObject *)__pyx_n_s__self));
2926 PyTuple_SET_ITEM(__pyx_k_tuple_34, 0, ((PyObject *)__pyx_n_s__self));
2927 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__self));
2928 __Pyx_INCREF(((PyObject *)__pyx_n_s___key));
2929 PyTuple_SET_ITEM(__pyx_k_tuple_34, 1, ((PyObject *)__pyx_n_s___key));
2930 __Pyx_GIVEREF(((PyObject *)__pyx_n_s___key));
2931 __Pyx_INCREF(((PyObject *)__pyx_n_s___data));
2932 PyTuple_SET_ITEM(__pyx_k_tuple_34, 2, ((PyObject *)__pyx_n_s___data));
2933 __Pyx_GIVEREF(((PyObject *)__pyx_n_s___data));
2934 __Pyx_INCREF(((PyObject *)__pyx_n_s__key));
2935 PyTuple_SET_ITEM(__pyx_k_tuple_34, 3, ((PyObject *)__pyx_n_s__key));
2936 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__key));
2937 __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_34));
2938 __pyx_k_codeobj_35 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_34, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_8, __pyx_n_s___data_set, 102, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_35)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2939 __Pyx_RefNannyFinishContext();
2940 return 0;
2941 __pyx_L1_error:;
2942 __Pyx_RefNannyFinishContext();
2943 return -1;
2944}
2945
2946static int __Pyx_InitGlobals(void) {
2947 if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
2948 __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
2949 return 0;
2950 __pyx_L1_error:;
2951 return -1;
2952}
2953
2954#if PY_MAJOR_VERSION < 3
2955PyMODINIT_FUNC initeobase(void); /*proto*/
2956PyMODINIT_FUNC initeobase(void)
2957#else
2958PyMODINIT_FUNC PyInit_eobase(void); /*proto*/
2959PyMODINIT_FUNC PyInit_eobase(void)
2960#endif
2961{
2962 PyObject *__pyx_t_1 = NULL;
2963 PyObject *__pyx_t_2 = NULL;
2964 PyObject *__pyx_t_3 = NULL;
2965 PyObject *__pyx_t_4 = NULL;
2966 __Pyx_RefNannyDeclarations
2967 #if CYTHON_REFNANNY
2968 __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
2969 if (!__Pyx_RefNanny) {
2970 PyErr_Clear();
2971 __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
2972 if (!__Pyx_RefNanny)
2973 Py_FatalError("failed to import 'refnanny' module");
2974 }
2975 #endif
2976 __Pyx_RefNannySetupContext("PyMODINIT_FUNC PyInit_eobase(void)", 0);
2977 if ( __Pyx_check_binary_version() < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2978 __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2979 __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2980 #ifdef __Pyx_CyFunction_USED
2981 if (__Pyx_CyFunction_init() < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2982 #endif
2983 #ifdef __Pyx_FusedFunction_USED
2984 if (__pyx_FusedFunction_init() < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2985 #endif
2986 #ifdef __Pyx_Generator_USED
2987 if (__pyx_Generator_init() < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2988 #endif
2989 /*--- Library function declarations ---*/
2990 /*--- Threads initialization code ---*/
2991 #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
2992 #ifdef WITH_THREAD /* Python build with threading support? */
2993 PyEval_InitThreads();
2994 #endif
2995 #endif
2996 /*--- Module creation code ---*/
2997 #if PY_MAJOR_VERSION < 3
2998 __pyx_m = Py_InitModule4(__Pyx_NAMESTR("eobase"), __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
2999 #else
3000 __pyx_m = PyModule_Create(&__pyx_moduledef);
3001 #endif
3002 if (unlikely(!__pyx_m)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3003 #if PY_MAJOR_VERSION >= 3
3004 {
3005 PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3006 if (!PyDict_GetItemString(modules, "eorepo.eobase")) {
3007 if (unlikely(PyDict_SetItemString(modules, "eorepo.eobase", __pyx_m) < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3008 }
3009 }
3010 #endif
3011 __pyx_b = PyImport_AddModule(__Pyx_NAMESTR(__Pyx_BUILTIN_MODULE_NAME)); if (unlikely(!__pyx_b)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3012 #if CYTHON_COMPILING_IN_PYPY
3013 Py_INCREF(__pyx_b);
3014 #endif
3015 if (__Pyx_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
3016 /*--- Initialize various global constants etc. ---*/
3017 if (unlikely(__Pyx_InitGlobals() < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3018 if (__pyx_module_is_main_eorepo__eobase) {
3019 if (__Pyx_SetAttrString(__pyx_m, "__name__", __pyx_n_s____main__) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};