diff options
author | P. F. Chimento <philip.chimento@gmail.com> | 2013-04-22 13:43:11 +0200 |
---|---|---|
committer | P. F. Chimento <philip.chimento@gmail.com> | 2013-04-24 17:30:39 +0200 |
commit | 7e9ffb6b095fff756dec717f337e6a6aa42dd208 (patch) | |
tree | 48f66885d568e2e57960fa4e128bae5092138122 /endless/eosapplication.h | |
parent | 51ad28a4d90a1c8691127eccbbe0b170f53ef71e (diff) |
Rename C source and header files
For consistency with GTK, blah.[ch] should be named eosblah.[ch].
[#23]
Diffstat (limited to 'endless/eosapplication.h')
-rw-r--r-- | endless/eosapplication.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/endless/eosapplication.h b/endless/eosapplication.h new file mode 100644 index 0000000..8720f9e --- /dev/null +++ b/endless/eosapplication.h @@ -0,0 +1,70 @@ +/* Copyright 2013 Endless Mobile, Inc. */ + +#if !(defined(_EOS_SDK_INSIDE_ENDLESS_H) || defined(COMPILING_EOS_SDK)) +#error "Please do not include this header file directly." +#endif + +#ifndef EOS_APPLICATION_H +#define EOS_APPLICATION_H + +#include "eostypes.h" + +#include <gtk/gtk.h> + +#define EOS_TYPE_APPLICATION eos_application_get_type() + +#define EOS_APPLICATION(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ + EOS_TYPE_APPLICATION, EosApplication)) + +#define EOS_APPLICATION_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST ((klass), \ + EOS_TYPE_APPLICATION, EosApplicationClass)) + +#define EOS_IS_APPLICATION(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ + EOS_TYPE_APPLICATION)) + +#define EOS_IS_APPLICATION_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE ((klass), \ + EOS_TYPE_APPLICATION)) + +#define EOS_APPLICATION_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + EOS_TYPE_APPLICATION, EosApplicationClass)) + +typedef struct _EosApplication EosApplication; +typedef struct _EosApplicationClass EosApplicationClass; +typedef struct _EosApplicationPrivate EosApplicationPrivate; + +/** + * EosApplication: + * + * This class structure contains no public members. + */ +struct _EosApplication +{ + /*< private >*/ + GtkApplication parent; + + EosApplicationPrivate *priv; +}; + +struct _EosApplicationClass +{ + GtkApplicationClass parent_class; + + /* For further expansion */ + gpointer _padding[8]; +}; + +EOS_SDK_ALL_API_VERSIONS +GType eos_application_get_type (void) G_GNUC_CONST; + +EOS_SDK_ALL_API_VERSIONS +EosApplication *eos_application_new (const gchar *application_id, + GApplicationFlags flags); + +G_END_DECLS + +#endif /* EOS_APPLICATION_H */ |