Refactor modules in Python bindings. Start work on grammar-update functions, but without transactions.

This commit is contained in:
John J. Camilleri
2021-09-20 23:42:50 +02:00
parent e41feae82a
commit 7dba3465d0
10 changed files with 243 additions and 35 deletions

View File

@@ -0,0 +1,38 @@
#ifndef PYPGF_TRANSACTIONS_H_
#define PYPGF_TRANSACTIONS_H_
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <pgf/pgf.h>
// typedef struct {
// PyObject_HEAD
// PyObject *thing;
// } TransactionObject;
// modifyPGF
//
// branchPGF
//
// checkoutPGF
PyObject *
PGF_createFunction(PGFObject *self, PyObject *args);
PyObject *
PGF_dropFunction(PGFObject *self, PyObject *args);
PyObject *
PGF_createCategory(PGFObject *self, PyObject *args);
PyObject *
PGF_dropCategory(PGFObject *self, PyObject *args);
// setGlobalFlag
//
// setAbstractFlag
#endif // PYPGF_TRANSACTIONS_H_