diff options
author | Henrik Rydberg <rydberg@euromail.se> | 2008-11-03 00:49:34 +0100 |
---|---|---|
committer | Henrik Rydberg <rydberg@euromail.se> | 2008-11-03 00:49:34 +0100 |
commit | 70ba2dbf0f49a4f8d1caa2bbed97c8c2358c6fb6 (patch) | |
tree | e1697049bc32fd47b1e639969b4ff752689c92a8 /src/hal-abi.h | |
download | xorg-input-kobomultitouch-70ba2dbf0f49a4f8d1caa2bbed97c8c2358c6fb6.tar.gz xorg-input-kobomultitouch-70ba2dbf0f49a4f8d1caa2bbed97c8c2358c6fb6.tar.bz2 xorg-input-kobomultitouch-70ba2dbf0f49a4f8d1caa2bbed97c8c2358c6fb6.zip |
Initial version: adding some files
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/hal-abi.h')
-rw-r--r-- | src/hal-abi.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/hal-abi.h b/src/hal-abi.h new file mode 100644 index 0000000..277580f --- /dev/null +++ b/src/hal-abi.h @@ -0,0 +1,28 @@ +/* + * HAL ABI + * + * The following is all hal information needed in order to compile + * a hald-addon. + */ + +/* Structure declarations */ +struct LibHalContext; +struct DBusConnection; + +/* Simple error handling */ +#define setup_logger() +#define eprintf(...) (fprintf(stderr, __VA_ARGS__), fprintf(stderr, "\n")) +#define WARNING(...) eprintf("addon-warning: " __VA_ARGS__) +#define DEBUG(...) eprintf("addon-debug: " __VA_ARGS__) +#define ERROR(...) eprintf("addon-error: " __VA_ARGS__) +#define HAL_WARNING(x) WARNING x +#define HAL_DEBUG(x) DEBUG x +#define HAL_ERROR(x) ERROR x + +/* Function declarations */ +struct LibHalContext * +libhal_ctx_init_direct(struct DBusError *error); + +struct DBusConnection * +libhal_ctx_get_dbus_connection(struct LibHalContext *ctx); + |