summaryrefslogtreecommitdiff
path: root/radio.h
blob: b68e20a172acd85a35c03d894406e451fad79319 (plain)
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
/*
 * GPL 2
 */

#ifndef CFM_RADIO_H
#define CFM_RADIO_H

#include <glib-object.h>

#define CFM_TYPE_RADIO                  (cfm_radio_get_type ())
#define CFM_RADIO(obj)                  (G_TYPE_CHECK_INSTANCE_CAST ((obj), CFM_TYPE_RADIO, CFmRadio))
#define CFM_IS_RADIO(obj)               (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CFM_TYPE_RADIO))
#define CFM_RADIO_CLASS(klass)          (G_TYPE_CHECK_CLASS_CAST ((klass), CFM_TYPE_RADIO, CFmRadioClass))
#define CFM_IS_RADIO_CLASS(klass)       (G_TYPE_CHECK_CLASS_TYPE ((klass), CFM_TYPE_RADIO))
#define CFM_RADIO_GET_CLASS(obj)        (G_TYPE_INSTANCE_GET_CLASS ((obj), CFM_TYPE_RADIO, CFmRadioClass))

typedef struct _CFmRadio        CFmRadio;
typedef struct _CFmRadioPrivate CFmRadioPrivate;
typedef struct _CFmRadioClass   CFmRadioClass;

struct _CFmRadio
{
  GObject parent_instance;
  CFmRadioPrivate *priv;
};

struct _CFmRadioClass
{
  GObjectClass parent_class;
};

GType cfm_radio_get_type(void) G_GNUC_CONST;
CFmRadio* cfm_radio_new();

void cfm_radio_seek_up(CFmRadio* radio);
void cfm_radio_seek_down(CFmRadio* radio);

#endif /* CFM_RADIO_H */