salt/pkg/smartos/esky/sodium_grabber.c
Nahum Shalman cdae8948a1 SmartOS esky packaging of 2014.7
Resulting builds can be used either with zeromq or with raet
2014-08-21 16:01:46 -04:00

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);
}