48 lines
1.8 KiB
Cython
48 lines
1.8 KiB
Cython
# Copyright (C) 2007-2013 various contributors (see AUTHORS)
|
|
#
|
|
# This file is part of Python-EFL.
|
|
#
|
|
# Python-EFL is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
# License as published by the Free Software Foundation; either
|
|
# version 2.1 of the License, or (at your option) any later version.
|
|
#
|
|
# Python-EFL is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
# Lesser General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
# along with this Python-EFL. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
from efl.c_eo cimport Eo as cEo
|
|
from efl.c_eo cimport Eo_Class
|
|
from efl cimport Eina_List, const_Eina_List
|
|
from libc.string cimport const_char
|
|
|
|
cdef class Eo(object):
|
|
cdef cEo *obj
|
|
cdef readonly dict data
|
|
|
|
cdef void _set_obj(self, cEo *obj) except *
|
|
# cdef void *_unset_obj(self)
|
|
# cdef _add_obj(self, Eo_Class *klass, cEo *parent)
|
|
|
|
|
|
cdef int PY_REFCOUNT(object o)
|
|
|
|
cdef object object_from_instance(cEo *obj)
|
|
cdef void _object_mapping_register(char *name, object cls) except *
|
|
cdef void _object_mapping_unregister(char *name)
|
|
|
|
cdef unicode _touni(char* s)
|
|
cdef unicode _ctouni(const_char *s)
|
|
|
|
cdef list convert_array_of_strings_to_python_list(char **array, int array_length)
|
|
cdef const_char ** convert_python_list_strings_to_array_of_strings(list strings) except NULL
|
|
cdef list convert_eina_list_strings_to_python_list(const_Eina_List *lst)
|
|
cdef Eina_List * convert_python_list_strings_to_eina_list(list strings)
|
|
cdef list _object_list_to_python(const_Eina_List *lst)
|
|
cdef Eina_List *convert_python_list_objects_to_eina_list(list objects)
|
|
cdef void _METHOD_DEPRECATED(object self, char *message)
|