mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
cdae8948a1
Resulting builds can be used either with zeromq or with raet
17 lines
493 B
C
17 lines
493 B
C
#include <Python.h>
|
|
#include <sodium.h>
|
|
|
|
static PyObject* grabber_init(PyObject* self, PyObject* args) {
|
|
return Py_BuildValue("i", sodium_init());
|
|
}
|
|
|
|
PyMethodDef methods[] = {
|
|
{"init", grabber_init, METH_VARARGS},
|
|
{NULL, NULL},
|
|
};
|
|
|
|
void initsodium_grabber()
|
|
{
|
|
(void)Py_InitModule("sodium_grabber", methods);
|
|
}
|