Revision 15328,
926 bytes
checked in by ghudson, 24 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r15327,
which included commits to RCS files with non-trunk default branches.
|
Rev | Line | |
---|
[15327] | 1 | #ifndef DISTRIBUTION_H |
---|
| 2 | #define DISTRIBUTION_H |
---|
| 3 | |
---|
| 4 | #include <panel-widget.h> |
---|
| 5 | #include "applet.h" |
---|
| 6 | |
---|
| 7 | BEGIN_GNOME_DECLS |
---|
| 8 | |
---|
| 9 | typedef enum { |
---|
| 10 | DISTRIBUTION_UNKNOWN = 0, |
---|
| 11 | DISTRIBUTION_DEBIAN, |
---|
| 12 | DISTRIBUTION_MANDRAKE, |
---|
| 13 | DISTRIBUTION_SUSE, |
---|
| 14 | DISTRIBUTION_REDHAT |
---|
| 15 | } DistributionType; |
---|
| 16 | |
---|
| 17 | typedef struct { |
---|
| 18 | DistributionType type; |
---|
| 19 | const gchar *version_file; |
---|
| 20 | const gchar *distribution_name; |
---|
| 21 | const gchar *menu_name; |
---|
| 22 | const gchar *menu_icon; |
---|
| 23 | const gchar *menu_path; |
---|
| 24 | void (*menu_init_func) (void); |
---|
| 25 | void (*menu_show_func) (GtkWidget *, GtkMenuItem *); |
---|
| 26 | } DistributionInfo; |
---|
| 27 | |
---|
| 28 | /* Get distribution type. */ |
---|
| 29 | DistributionType get_distribution_type (void) G_GNUC_CONST; |
---|
| 30 | |
---|
| 31 | /* Get the distribution info, it only checks the first time, it thus won't handle |
---|
| 32 | * distributions getting changed from under us. Hmmm ... I think doing that |
---|
| 33 | * would be really going overboard */ |
---|
| 34 | const DistributionInfo *get_distribution_info (void) G_GNUC_CONST; |
---|
| 35 | |
---|
| 36 | END_GNOME_DECLS |
---|
| 37 | |
---|
| 38 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.