oops, I shifted the wrong value.
[swfdec.git] / swfdec / swfdec_system.h
blob26c964702cb17f7922a28bb3300e9a04d152671e
1 /* Swfdec
2 * Copyright (C) 2007 Benjamin Otte <otte@gnome.org>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301 USA
20 #ifndef _SWFDEC_SYSTEM_H_
21 #define _SWFDEC_SYSTEM_H_
23 #include <glib-object.h>
25 G_BEGIN_DECLS
27 typedef struct _SwfdecSystem SwfdecSystem;
28 typedef struct _SwfdecSystemClass SwfdecSystemClass;
30 #define SWFDEC_TYPE_SYSTEM (swfdec_system_get_type())
31 #define SWFDEC_IS_SYSTEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWFDEC_TYPE_SYSTEM))
32 #define SWFDEC_IS_SYSTEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWFDEC_TYPE_SYSTEM))
33 #define SWFDEC_SYSTEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWFDEC_TYPE_SYSTEM, SwfdecSystem))
34 #define SWFDEC_SYSTEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWFDEC_TYPE_SYSTEM, SwfdecSystemClass))
35 #define SWFDEC_SYSTEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWFDEC_TYPE_SYSTEM, SwfdecSystemClass))
37 struct _SwfdecSystem
39 GObject object;
41 /*< private >*/
42 /* player engine */
43 gboolean debugger; /* TRUE if this engine is debugging */
44 char * manufacturer; /* note that this includes OS information */
45 char * server_manufacturer; /* manufacturer as reported in serverString */
46 char * os; /* supposed to identify the operating system */
47 char * os_type; /* usually WIN, LIN or MAC */
48 char * player_type; /* "StandAlone", "External", "PlugIn" or "ActiveX" */
49 char * version; /* string of type "os_type MAJOR.MINOR.MACRO.MICRO" */
51 /* system */
52 char * language; /* ISO 639-1 language code */
54 /* screen */
55 guint screen_width; /* width of screen */
56 guint screen_height; /* height of screen */
57 double par; /* pixel aspect ratio */
58 guint dpi; /* dpi setting */
59 char * color_mode; /* "color", "gray" or "bw" */
61 /* date */
62 int utc_offset; /* difference between UTC and local timezeon in minutes */
66 struct _SwfdecSystemClass
68 GObjectClass object_class;
71 GType swfdec_system_get_type (void);
73 SwfdecSystem * swfdec_system_new (void);
75 G_END_DECLS
76 #endif