summaryrefslogtreecommitdiff
path: root/src/freebsd/up-devd.h
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2010-01-18 12:26:55 +0000
committerRichard Hughes <richard@hughsie.com>2010-01-18 12:26:55 +0000
commit15ac5102c8abcbeac6e8da007056e493d4fef1e6 (patch)
tree644ce3fecec5540cb608ad2e22175adbd3404a0a /src/freebsd/up-devd.h
parent7be60e43e298a922576cafc47c89c11929c06da9 (diff)
downloadupower-15ac5102c8abcbeac6e8da007056e493d4fef1e6.tar.gz
trivial: Rename a lot of the source files from dkp-foo to up-foo, no API or ABI changes
Diffstat (limited to 'src/freebsd/up-devd.h')
-rw-r--r--src/freebsd/up-devd.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/freebsd/up-devd.h b/src/freebsd/up-devd.h
new file mode 100644
index 0000000..688b024
--- /dev/null
+++ b/src/freebsd/up-devd.h
@@ -0,0 +1,45 @@
+/***************************************************************************
+ *
+ * dkp-devd.h : process devd events
+ *
+ * Copyright (C) 2006, 2009 Joe Marcus Clarke <marcus@FreeBSD.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ **************************************************************************/
+
+#ifndef _DKP_DEVD_H
+#define _DKP_DEVD_H
+
+#include "config.h"
+
+#include "up-backend.h"
+
+#include <glib.h>
+
+typedef struct
+{
+ /* return TRUE to consume the event and stop processing */
+
+ gboolean (*notify) (DkpBackend *backend,
+ const char *system,
+ const char *subsystem,
+ const char *type,
+ const char *data); /* may be NULL */
+} DkpDevdHandler;
+
+void dkp_devd_init (DkpBackend *backend);
+
+#endif /* _DKP_DEVD_H */