mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-10 13:29:32 -06:00
25 lines
636 B
C
25 lines
636 B
C
#ifndef PYPGF_TRANSACTIONS_H_
|
|
#define PYPGF_TRANSACTIONS_H_
|
|
|
|
#define PY_SSIZE_T_CLEAN
|
|
#include <Python.h>
|
|
|
|
#include <pgf/pgf.h>
|
|
|
|
typedef struct {
|
|
PyObject_HEAD
|
|
PGFObject *pgf; // original reference, gets updated on commit
|
|
PgfRevision revision; // transient branch
|
|
} TransactionObject;
|
|
|
|
extern PyTypeObject pgf_TransactionType;
|
|
|
|
PyObject *PGF_checkoutBranch(PGFObject *self, PyObject *args);
|
|
|
|
TransactionObject *PGF_newTransaction(PGFObject *self, PyObject *args);
|
|
|
|
PyObject *PGF_getGlobalFlag(PGFObject *self, PyObject *args);
|
|
PyObject *PGF_getAbstractFlag(PGFObject *self, PyObject *args);
|
|
|
|
#endif // PYPGF_TRANSACTIONS_H_
|