diff options
Diffstat (limited to 'lang_ext/python/cext.c')
-rw-r--r-- | lang_ext/python/cext.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lang_ext/python/cext.c b/lang_ext/python/cext.c new file mode 100644 index 0000000..5336f2d --- /dev/null +++ b/lang_ext/python/cext.c @@ -0,0 +1,16 @@ +/* + * upb - a minimalist implementation of protocol buffers. + * + * Copyright (c) 2009 Joshua Haberman. See LICENSE for details. + * + */ + +#include "cext.h" + +PyMODINIT_FUNC +initcext(void) +{ + PyObject *mod = Py_InitModule("upb.cext", NULL); + initdefinition(); + initpb(); +} |