API change: added void *user_data to mg_start(). Bumped version to 3.0

This commit is contained in:
valenok committed 2010-10-26 23:37:44 +01:00
1 parent 7034f49276
commit 11951a57ff
5 files changed
+14 -8

No files matched your search

+1 -1
View File
@@ -144,7 +144,7 @@ class Mongoose(object):
args = [y for x in kwargs.items() for y in x] + [None]
options = (ctypes.c_char_p * len(args))(*args)
ret = self.dll.mg_start(self.callback, options)
ret = self.dll.mg_start(self.callback, 0, options)
self.ctx = ctypes.c_void_p(ret)
def __del__(self):