X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fchimara-if.h;h=f8ec757dfd3948676bd15db0d2e84959698f794d;hb=aa30979369091c96bca34499c28cb01bc16efb1d;hp=c0763ee600517d1fa8ee88e3cc2252477aead57e;hpb=b936c01ca2fa27e7e632643fa36bd963c7ac36b6;p=projects%2Fchimara%2Fchimara.git diff --git a/libchimara/chimara-if.h b/libchimara/chimara-if.h index c0763ee..f8ec757 100644 --- a/libchimara/chimara-if.h +++ b/libchimara/chimara-if.h @@ -24,7 +24,7 @@ G_BEGIN_DECLS * * Constants representing all game formats supported by the Chimara system. */ -typedef enum _ChimaraIFFormat { +typedef enum { /*< private >*/ CHIMARA_IF_FORMAT_NONE = -1, /*< public >*/ @@ -44,10 +44,11 @@ typedef enum _ChimaraIFFormat { * @CHIMARA_IF_INTERPRETER_NITFOL: Nitfol * @CHIMARA_IF_INTERPRETER_GLULXE: Glulxe * @CHIMARA_IF_INTERPRETER_GIT: Git + * @CHIMARA_IF_INTERPRETER_BOCFEL: Bocfel * * Constants representing the available interpreter plugins. */ -typedef enum _ChimaraIFInterpreter { +typedef enum { /*< private >*/ CHIMARA_IF_INTERPRETER_NONE = -1, /*< public >*/ @@ -55,6 +56,7 @@ typedef enum _ChimaraIFInterpreter { CHIMARA_IF_INTERPRETER_NITFOL, CHIMARA_IF_INTERPRETER_GLULXE, CHIMARA_IF_INTERPRETER_GIT, + CHIMARA_IF_INTERPRETER_BOCFEL, /*< private >*/ CHIMARA_IF_NUM_INTERPRETERS } ChimaraIFInterpreter; @@ -78,7 +80,7 @@ typedef enum _ChimaraIFInterpreter { * Allowed values for the #ChimaraIF:interpreter-number property. All trademarks * are the property of their respective owners. */ -typedef enum _ChimaraIFZmachineVersion { +typedef enum { CHIMARA_IF_ZMACHINE_DEFAULT = 0, CHIMARA_IF_ZMACHINE_DECSYSTEM_20, CHIMARA_IF_ZMACHINE_APPLE_IIE, @@ -100,13 +102,13 @@ typedef enum _ChimaraIFZmachineVersion { * * This structure contains no public members. */ -typedef struct _ChimaraIF { +typedef struct { ChimaraGlk parent_instance; /*< public >*/ } ChimaraIF; -typedef struct _ChimaraIFClass { +typedef struct { ChimaraGlkClass parent_class; /* Signals */ void(* command) (ChimaraIF *self, gchar *input, gchar *response); @@ -116,7 +118,8 @@ GType chimara_if_get_type(void) G_GNUC_CONST; GtkWidget *chimara_if_new(void); void chimara_if_set_preferred_interpreter(ChimaraIF *self, ChimaraIFFormat format, ChimaraIFInterpreter interpreter); ChimaraIFInterpreter chimara_if_get_preferred_interpreter(ChimaraIF *self, ChimaraIFFormat format); -gboolean chimara_if_run_game(ChimaraIF *self, const char *gamefile, GError **error); +gboolean chimara_if_run_game(ChimaraIF *self, const char *game_path, GError **error); +gboolean chimara_if_run_game_file(ChimaraIF *self, GFile *game_file, GError **error); ChimaraIFFormat chimara_if_get_format(ChimaraIF *self); ChimaraIFInterpreter chimara_if_get_interpreter(ChimaraIF *self);