~ubuntu-branches/ubuntu/oneiric/rhythmbox/oneiric

« back to all changes in this revision

Viewing changes to plugins/fmradio/rb-radio-tuner-v4l2.c

  • Committer: Bazaar Package Importer
  • Author(s): Rico Tzschichholz
  • Date: 2011-07-29 16:41:38 UTC
  • mto: This revision was merged to the branch mainline in revision 191.
  • Revision ID: james.westby@ubuntu.com-20110729164138-wwicy8nqalm18ck7
Tags: upstream-2.90.1~20110802
ImportĀ upstreamĀ versionĀ 2.90.1~20110802

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
#include <glib.h>
41
41
 
42
42
#include "rb-debug.h"
43
 
#include "rb-plugin.h"
44
43
#include "rb-radio-tuner.h"
45
44
 
46
45
struct _RBRadioTunerPrivate {
51
50
        guint32 freq_mul;
52
51
};
53
52
 
54
 
RB_PLUGIN_DEFINE_TYPE (RBRadioTuner, rb_radio_tuner, G_TYPE_OBJECT);
 
53
G_DEFINE_DYNAMIC_TYPE (RBRadioTuner, rb_radio_tuner, G_TYPE_OBJECT);
55
54
 
56
55
static void rb_radio_tuner_finalize (GObject *object);
57
56
 
66
65
}
67
66
 
68
67
static void
 
68
rb_radio_tuner_class_finalize (RBRadioTunerClass *class)
 
69
{
 
70
}
 
71
 
 
72
static void
69
73
rb_radio_tuner_init (RBRadioTuner *self)
70
74
{
71
75
        self->priv = G_TYPE_INSTANCE_GET_PRIVATE(self, RB_TYPE_RADIO_TUNER,
227
231
        control.value = !!mute;
228
232
        return ioctl (self->priv->fd, VIDIOC_S_CTRL, &control) >= 0;
229
233
}
 
234
 
 
235
void
 
236
_rb_radio_tuner_register_type (GTypeModule *module)
 
237
{
 
238
        rb_radio_tuner_register_type (module);
 
239
}