1
0
mirror of https://github.com/deuill/go-php.git synced 2024-09-21 08:50:45 +00:00
go-php/context.h
Alex Palaistras bd0f41e3d5 Initial commit of entire workspace
Code was seperated out from the Sigil web application framework.
https://github.com/deuill/sigil
2015-09-17 22:22:07 +01:00

13 lines
399 B
C

#ifndef CONTEXT_H
#define CONTEXT_H
typedef struct _engine_context {
php_engine *engine; // Parent engine instance.
void *parent; // Pointer to parent Go context, used for passing to callbacks.
} engine_context;
engine_context *context_new(php_engine *engine, void *parent);
void context_exec(engine_context *context, char *filename);
void context_destroy(engine_context *context);
#endif