Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
mongoose
Commits
22b430de
Commit
22b430de
authored
Jun 07, 2012
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Using ctypes.WinDLL on Windows
parent
7d5eb279
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
mongoose.py
bindings/python/mongoose.py
+4
-2
No files found.
bindings/python/mongoose.py
View file @
22b430de
...
@@ -118,8 +118,10 @@ class Mongoose(object):
...
@@ -118,8 +118,10 @@ class Mongoose(object):
"""A wrapper class for Mongoose shared library."""
"""A wrapper class for Mongoose shared library."""
def
__init__
(
self
,
callback
,
**
kwargs
):
def
__init__
(
self
,
callback
,
**
kwargs
):
dll_extension
=
os
.
name
==
'nt'
and
'dll'
or
'so'
if
os
.
name
==
'nt'
:
self
.
dll
=
ctypes
.
CDLL
(
'_mongoose.
%
s'
%
dll_extension
)
self
.
dll
=
ctypes
.
WinDLL
(
'_mongoose.dll'
)
else
:
self
.
dll
=
ctypes
.
CDLL
(
'_mongoose.so'
)
self
.
dll
.
mg_start
.
restype
=
ctypes
.
c_void_p
self
.
dll
.
mg_start
.
restype
=
ctypes
.
c_void_p
self
.
dll
.
mg_modify_passwords_file
.
restype
=
ctypes
.
c_int
self
.
dll
.
mg_modify_passwords_file
.
restype
=
ctypes
.
c_int
...
...
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