aboutsummaryrefslogtreecommitdiff
path: root/hardinfo.h
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@linuxmag.com.br>2004-06-14 21:33:25 -0300
committerSimon Quigley <tsimonq2@ubuntu.com>2017-06-19 14:38:31 -0500
commit7d65a12d6431f72e601ea1d0c3ef5d09af8bfb96 (patch)
tree7ad1761adce3212a13e5342a54865e31b917f18b /hardinfo.h
parent0864b0a8e6f0b0983c3536931cfbad1414137d6b (diff)
parent8c1612d32c5682a86216adb8c8d11ce715fe5475 (diff)
Import Debian changes 0.3.6-5
hardinfo (0.3.6-5) unstable; urgency=high * Add Amd64 support (closes: #253935). Thanks to Kurt Roeckx <Q@ping.be> * Close duplicate "doesn't work with newer pciutils" bug (closes: #254018). hardinfo (0.3.6-4) unstable; urgency=high * Fixed segfault on startup (closes: #242843). Thanks to Remco van de Meent <remco@debian.org> hardinfo (0.3.6-3) unstable; urgency=high * Added Debian menu entry icon. * Fixed some misc packaging bugs. * Changed package description. hardinfo (0.3.6-2) unstable; urgency=low * Sync with upstream sources. * Disabled "Network" tab. hardinfo (0.3.6-1) unstable; urgency=high * Sync with upstream sources. hardinfo (0.3.5-1) unstable; urgency=high * Sync with upstream sources. hardinfo (0.3.4-1) unstable; urgency=high * Sync with upstream sources. hardinfo (0.3.3-1) unstable; urgency=low * Sync with upstream sources. hardinfo (0.3.2-1) unstable; urgency=low * Sync with upstream sources. hardinfo (0.3.1-1) unstable; urgency=low * Sync with upstream sources. hardinfo (0.3-1) unstable; urgency=low * Initial Release.
Diffstat (limited to 'hardinfo.h')
-rw-r--r--hardinfo.h86
1 files changed, 86 insertions, 0 deletions
diff --git a/hardinfo.h b/hardinfo.h
new file mode 100644
index 00000000..8ba587d0
--- /dev/null
+++ b/hardinfo.h
@@ -0,0 +1,86 @@
+#ifndef __HARDINFO_H__
+#define __HARDINFO_H__
+
+#define walk_until(x) while((*buf != '\0') && (*buf != x)) buf++
+#define walk_until_inclusive(x) walk_until(x); buf++
+
+#define PREFIX "/usr/share/hardinfo/"
+#define IMG_PREFIX PREFIX "pixmaps/"
+
+#include <gtk/gtk.h>
+#include <stdio.h>
+#include <string.h>
+#include <sys/stat.h>
+
+#include "config.h"
+
+#ifdef ENABLE_NLS
+#define INTL_PREFIX PREFIX "lang/"
+#include "intl.h"
+#else
+#define _(x) (x)
+#endif
+
+typedef struct _GenericDevice GenericDevice;
+typedef enum _DeviceType DeviceType;
+
+typedef struct _MainWindow MainWindow;
+
+enum _DeviceType {
+ NONE, PCI, ISAPnP, USB,
+ IDE, SCSI, SERIAL, PARPORT,
+ V4L
+};
+
+struct _GenericDevice {
+ gpointer device;
+ DeviceType type;
+
+ GtkCTreeNode *node;
+
+ GenericDevice *next;
+};
+
+struct _MainWindow {
+ GtkWidget *window;
+
+ GtkWidget *ctree;
+
+ GtkWidget *frame;
+ GtkWidget *framec;
+
+ GtkWidget *membar;
+ GtkWidget *uptime;
+
+ GtkWidget *recv_bytes;
+ GtkWidget *recv_errors;
+ GtkWidget *recv_packets;
+
+ GtkWidget *trans_bytes;
+ GtkWidget *trans_errors;
+ GtkWidget *trans_packets;
+};
+
+extern GenericDevice *generic_devices;
+
+#include "ide.h"
+#include "scsi.h"
+#include "isapnp.h"
+#include "usb.h"
+#include "pci.h"
+#include "serial.h"
+#include "parport.h"
+#include "v4l.h"
+
+#include "x11.h"
+#include "net.h"
+
+#include "about.h"
+
+GtkCTreeNode *tree_group_new(MainWindow *mainwindow, const gchar *name,
+ DeviceType type);
+void tree_insert_item(MainWindow *mainwindow, GtkCTreeNode *group, gchar *name,
+ gpointer data);
+void hi_insert_generic(gpointer device, DeviceType type);
+
+#endif