1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-08-22 08:12:46 +03:00

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

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

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):