/usr/include/libbuzztard-ic/device.h is in libbuzztard-dev 0.6.0-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | /* $Id: device.h 3608 2011-08-25 23:19:35Z ensonic $
*
* Buzztard
* Copyright (C) 2007 Buzztard team <buzztard-devel@lists.sf.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef BTIC_DEVICE_H
#define BTIC_DEVICE_H
#include <glib.h>
#include <glib-object.h>
#include "control.h"
/* type macros */
#define BTIC_TYPE_DEVICE (btic_device_get_type ())
#define BTIC_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BTIC_TYPE_DEVICE, BtIcDevice))
#define BTIC_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BTIC_TYPE_DEVICE, BtIcDeviceClass))
#define BTIC_IS_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BTIC_TYPE_DEVICE))
#define BTIC_IS_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BTIC_TYPE_DEVICE))
#define BTIC_DEVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BTIC_TYPE_DEVICE, BtIcDeviceClass))
typedef struct _BtIcDevice BtIcDevice;
typedef struct _BtIcDeviceClass BtIcDeviceClass;
typedef struct _BtIcDevicePrivate BtIcDevicePrivate;
/**
* BtIcDevice:
*
* buzztards interaction controller device
*/
struct _BtIcDevice {
const GObject parent;
/*< private >*/
BtIcDevicePrivate *priv;
};
/**
* btic_device_virtual_start:
* @self: device instance
*
* Subclasses will override this methods with a function that counts start calls
* and runs the device-io for starts>0.
*
* Returns: %TRUE for success
*/
typedef gboolean (*btic_device_virtual_start)(gconstpointer self);
/**
* btic_device_virtual_stop:
* @self: device instance
*
* Subclasses will override this methods with a function that counts stop calls
* and stops the device-io for starts==0.
*
* Returns: %TRUE for success
*/
typedef gboolean (*btic_device_virtual_stop)(gconstpointer self);
/**
* BtIcDeviceClass:
* @parent: parent class type
* @start: virtual method for starting a devie
* @stop: virtual method for stopping a device
* @learn: virtual method for a learn function
*
* buzztards interaction controller device class
*/
struct _BtIcDeviceClass {
const GObjectClass parent;
/* class methods */
btic_device_virtual_start start;
btic_device_virtual_stop stop;
};
GType btic_device_get_type(void) G_GNUC_CONST;
void btic_device_add_control(const BtIcDevice *self, const BtIcControl *control);
BtIcControl *btic_device_get_control_by_id(const BtIcDevice *self,guint id);
gboolean btic_device_has_controls(const BtIcDevice *self);
gboolean btic_device_start(const BtIcDevice *self);
gboolean btic_device_stop(const BtIcDevice *self);
#endif // BTIC_DEVICE_H
|