*
* Constants representing all game formats supported by the Chimara system.
*/
-typedef enum _ChimaraIFFormat {
+typedef enum {
/*< private >*/
CHIMARA_IF_FORMAT_NONE = -1,
/*< public >*/
*
* Constants representing the available interpreter plugins.
*/
-typedef enum _ChimaraIFInterpreter {
+typedef enum {
/*< private >*/
CHIMARA_IF_INTERPRETER_NONE = -1,
/*< public >*/
* 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,
*
* 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);
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);