Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
9e70eb1a
Commit
9e70eb1a
authored
May 09, 2015
by
Vincent Castellano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove debug function and replace with macro
parent
8c00b448
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
19 deletions
+1
-19
python-tg.c
python-tg.c
+1
-19
No files found.
python-tg.c
View file @
9e70eb1a
...
...
@@ -1290,30 +1290,12 @@ PyObject* py_extf(PyObject *self, PyObject *args) { return push_py_func(pq_extf,
// Store callables for python functions
TGL_PYTHON_CALLBACK
(
"on_binlog_replay_end"
,
_py_binlog_end
);
TGL_PYTHON_CALLBACK
(
"on_get_difference_end"
,
_py_diff_end
);
//
TGL_PYTHON_CALLBACK("on_our_id", _py_our_id);
TGL_PYTHON_CALLBACK
(
"on_our_id"
,
_py_our_id
);
TGL_PYTHON_CALLBACK
(
"on_msg_receive"
,
_py_new_msg
);
TGL_PYTHON_CALLBACK
(
"on_secret_chat_update"
,
_py_secret_chat_update
);
TGL_PYTHON_CALLBACK
(
"on_user_update"
,
_py_user_update
);
TGL_PYTHON_CALLBACK
(
"on_chat_update"
,
_py_chat_update
);
PyObject
*
set_py_our_id
(
PyObject
*
dummy
,
PyObject
*
args
)
{
PyObject
*
result
=
NULL
;
PyObject
*
temp
;
if
(
PyArg_ParseTuple
(
args
,
"O:set_on_our_id"
,
&
temp
))
{
if
(
!
PyCallable_Check
(
temp
))
{
PyErr_SetString
(
PyExc_TypeError
,
"parameter must be callable"
);
return
NULL
;
}
Py_XINCREF
(
temp
);
Py_XDECREF
(
_py_our_id
);
_py_our_id
=
temp
;
Py_INCREF
(
Py_None
);
result
=
Py_None
;
}
return
result
;
}
static
PyMethodDef
py_tgl_methods
[]
=
{
{
"get_contact_list"
,
py_contact_list
,
METH_VARARGS
,
"retrieve contact list"
},
{
"get_dialog_list"
,
py_dialog_list
,
METH_VARARGS
,
""
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment