You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

756 lines
28 KiB

  1. diff --git a/src/dmap/grl-daap-db.c b/src/dmap/grl-daap-db.c
  2. index 315370e..e9a1713 100644
  3. --- a/src/dmap/grl-daap-db.c
  4. +++ b/src/dmap/grl-daap-db.c
  5. @@ -70,7 +70,7 @@
  6. /* Media ID's start at max and go down. Container ID's start at 1 and go up. */
  7. static guint nextid = G_MAXINT; /* NOTE: this should be G_MAXUINT, but iPhoto can't handle it. */
  8. -struct GrlDAAPDbPrivate {
  9. +struct GrlDaapDbPrivate {
  10. /* Contains each album container (tracked with albums hash table) */
  11. GrlMedia *albums_container;
  12. @@ -99,10 +99,10 @@ container_equal (gconstpointer a, gconstpointer b)
  13. return g_str_equal (grl_media_get_id (GRL_MEDIA (a)), grl_media_get_id (GRL_MEDIA (b)));
  14. }
  15. -GrlDAAPDb *
  16. +GrlDaapDb *
  17. grl_daap_db_new (void)
  18. {
  19. - GrlDAAPDb *db = g_object_new (TYPE_GRL_DAAP_DB, NULL);
  20. + GrlDaapDb *db = g_object_new (TYPE_GRL_DAAP_DB, NULL);
  21. return db;
  22. }
  23. @@ -160,7 +160,7 @@ grl_daap_db_add (DmapDb *_db, DmapRecord *_record, GError **error)
  24. g_assert (IS_GRL_DAAP_DB (_db));
  25. g_assert (IS_DMAP_AV_RECORD (_record));
  26. - GrlDAAPDb *db = GRL_DAAP_DB (_db);
  27. + GrlDaapDb *db = GRL_DAAP_DB (_db);
  28. DmapAvRecord *record = DMAP_AV_RECORD (_record);
  29. gint duration = 0;
  30. @@ -252,7 +252,7 @@ same_media (GrlMedia *a, GrlMedia *b)
  31. }
  32. void
  33. -grl_daap_db_browse (GrlDAAPDb *db,
  34. +grl_daap_db_browse (GrlDaapDb *db,
  35. GrlMedia *container,
  36. GrlSource *source,
  37. guint op_id,
  38. @@ -311,7 +311,7 @@ done:
  39. }
  40. void
  41. -grl_daap_db_search (GrlDAAPDb *db,
  42. +grl_daap_db_search (GrlDaapDb *db,
  43. GrlSource *source,
  44. guint op_id,
  45. GHRFunc predicate,
  46. @@ -373,8 +373,8 @@ dmap_db_interface_init (gpointer iface, gpointer data)
  47. daap_db->count = grl_daap_db_count;
  48. }
  49. -G_DEFINE_TYPE_WITH_CODE (GrlDAAPDb, grl_daap_db, G_TYPE_OBJECT,
  50. - G_ADD_PRIVATE (GrlDAAPDb)
  51. +G_DEFINE_TYPE_WITH_CODE (GrlDaapDb, grl_daap_db, G_TYPE_OBJECT,
  52. + G_ADD_PRIVATE (GrlDaapDb)
  53. G_IMPLEMENT_INTERFACE (DMAP_TYPE_DB, dmap_db_interface_init))
  54. static GObject*
  55. @@ -388,7 +388,7 @@ grl_daap_db_constructor (GType type, guint n_construct_params, GObjectConstructP
  56. }
  57. static void
  58. -grl_daap_db_init (GrlDAAPDb *db)
  59. +grl_daap_db_init (GrlDaapDb *db)
  60. {
  61. db->priv = grl_daap_db_get_instance_private (db);
  62. @@ -412,9 +412,9 @@ grl_daap_db_init (GrlDAAPDb *db)
  63. static void
  64. grl_daap_db_finalize (GObject *object)
  65. {
  66. - GrlDAAPDb *db = GRL_DAAP_DB (object);
  67. + GrlDaapDb *db = GRL_DAAP_DB (object);
  68. - GRL_DEBUG ("Finalizing GrlDAAPDb");
  69. + GRL_DEBUG ("Finalizing GrlDaapDb");
  70. g_object_unref (db->priv->albums_container);
  71. g_object_unref (db->priv->artists_container);
  72. @@ -451,7 +451,7 @@ grl_daap_db_get_property (GObject *object,
  73. static void
  74. -grl_daap_db_class_init (GrlDAAPDbClass *klass)
  75. +grl_daap_db_class_init (GrlDaapDbClass *klass)
  76. {
  77. GObjectClass *object_class = G_OBJECT_CLASS (klass);
  78. diff --git a/src/dmap/grl-daap-db.h b/src/dmap/grl-daap-db.h
  79. index 1a37a3a..ed877e4 100644
  80. --- a/src/dmap/grl-daap-db.h
  81. +++ b/src/dmap/grl-daap-db.h
  82. @@ -33,12 +33,12 @@ G_BEGIN_DECLS
  83. #define GRL_DAAP_DB(o) \
  84. (G_TYPE_CHECK_INSTANCE_CAST ((o), \
  85. TYPE_GRL_DAAP_DB, \
  86. - GrlDAAPDb))
  87. + GrlDaapDb))
  88. #define GRL_DAAP_DB_CLASS(k) \
  89. (G_TYPE_CHECK_CLASS_CAST ((k), \
  90. TYPE_GRL_DAAP_DB, \
  91. - GrlDAAPDbClass))
  92. + GrlDaapDbClass))
  93. #define IS_GRL_DAAP_DB(o) \
  94. (G_TYPE_CHECK_INSTANCE_TYPE ((o), \
  95. TYPE_GRL_DAAP_DB))
  96. @@ -50,25 +50,25 @@ G_BEGIN_DECLS
  97. #define GRL_DAAP_DB_GET_CLASS(o) \
  98. (G_TYPE_INSTANCE_GET_CLASS ((o), \
  99. TYPE_GRL_DAAP_DB, \
  100. - GrlDAAPDbClass))
  101. + GrlDaapDbClass))
  102. #define GRL_DAAP_DB_GET_PRIVATE(o) \
  103. (G_TYPE_INSTANCE_GET_PRIVATE ((o), \
  104. TYPE_GRL_DAAP_DB, \
  105. - GrlDAAPDbPrivate))
  106. + GrlDaapDbPrivate))
  107. -typedef struct GrlDAAPDbPrivate GrlDAAPDbPrivate;
  108. +typedef struct GrlDaapDbPrivate GrlDaapDbPrivate;
  109. typedef struct {
  110. GObject parent;
  111. - GrlDAAPDbPrivate *priv;
  112. -} GrlDAAPDb;
  113. + GrlDaapDbPrivate *priv;
  114. +} GrlDaapDb;
  115. typedef struct {
  116. GObjectClass parent;
  117. -} GrlDAAPDbClass;
  118. +} GrlDaapDbClass;
  119. -void grl_daap_db_browse (GrlDAAPDb *db,
  120. +void grl_daap_db_browse (GrlDaapDb *db,
  121. GrlMedia *container,
  122. GrlSource *source,
  123. guint op_id,
  124. @@ -77,7 +77,7 @@ void grl_daap_db_browse (GrlDAAPDb *db,
  125. GrlSourceResultCb func,
  126. gpointer user_data);
  127. -void grl_daap_db_search (GrlDAAPDb *db,
  128. +void grl_daap_db_search (GrlDaapDb *db,
  129. GrlSource *source,
  130. guint op_id,
  131. GHRFunc predicate,
  132. @@ -85,7 +85,7 @@ void grl_daap_db_search (GrlDAAPDb *db,
  133. GrlSourceResultCb func,
  134. gpointer user_data);
  135. -GrlDAAPDb *grl_daap_db_new (void);
  136. +GrlDaapDb *grl_daap_db_new (void);
  137. GType grl_daap_db_get_type (void);
  138. diff --git a/src/dmap/grl-daap-record-factory.c b/src/dmap/grl-daap-record-factory.c
  139. index d0c590f..f73fe23 100644
  140. --- a/src/dmap/grl-daap-record-factory.c
  141. +++ b/src/dmap/grl-daap-record-factory.c
  142. @@ -33,12 +33,12 @@ grl_daap_record_factory_create (DmapRecordFactory *factory, gpointer user_data,
  143. }
  144. static void
  145. -grl_daap_record_factory_init (GrlDAAPRecordFactory *factory)
  146. +grl_daap_record_factory_init (GrlDaapRecordFactory *factory)
  147. {
  148. }
  149. static void
  150. -grl_daap_record_factory_class_init (GrlDAAPRecordFactoryClass *klass)
  151. +grl_daap_record_factory_class_init (GrlDaapRecordFactoryClass *klass)
  152. {
  153. }
  154. @@ -52,11 +52,11 @@ grl_daap_record_factory_interface_init (gpointer iface, gpointer data)
  155. factory->create = grl_daap_record_factory_create_compat;
  156. }
  157. -G_DEFINE_TYPE_WITH_CODE (GrlDAAPRecordFactory, grl_daap_record_factory, G_TYPE_OBJECT,
  158. +G_DEFINE_TYPE_WITH_CODE (GrlDaapRecordFactory, grl_daap_record_factory, G_TYPE_OBJECT,
  159. G_IMPLEMENT_INTERFACE (DMAP_TYPE_RECORD_FACTORY,
  160. grl_daap_record_factory_interface_init))
  161. -GrlDAAPRecordFactory *
  162. +GrlDaapRecordFactory *
  163. grl_daap_record_factory_new (void)
  164. {
  165. return SIMPLE_DAAP_RECORD_FACTORY (g_object_new (TYPE_SIMPLE_DAAP_RECORD_FACTORY, NULL));
  166. diff --git a/src/dmap/grl-daap-record-factory.h b/src/dmap/grl-daap-record-factory.h
  167. index f114bad..fa6f05b 100644
  168. --- a/src/dmap/grl-daap-record-factory.h
  169. +++ b/src/dmap/grl-daap-record-factory.h
  170. @@ -1,5 +1,5 @@
  171. /*
  172. - * GrlDAAPRecord factory class
  173. + * GrlDaapRecord factory class
  174. *
  175. * Copyright (C) 2008 W. Michael Petullo <mike@flyn.org>
  176. *
  177. @@ -32,12 +32,12 @@ G_BEGIN_DECLS
  178. #define SIMPLE_DAAP_RECORD_FACTORY(o) \
  179. (G_TYPE_CHECK_INSTANCE_CAST ((o), \
  180. TYPE_SIMPLE_DAAP_RECORD_FACTORY, \
  181. - GrlDAAPRecordFactory))
  182. + GrlDaapRecordFactory))
  183. #define SIMPLE_DAAP_RECORD_FACTORY_CLASS(k) \
  184. (G_TYPE_CHECK_CLASS_CAST ((k), \
  185. TYPE_SIMPLE_DAAP_RECORD_FACTORY, \
  186. - GrlDAAPRecordFactoryClass))
  187. + GrlDaapRecordFactoryClass))
  188. #define IS_SIMPLE_DAAP_RECORD_FACTORY(o) \
  189. (G_TYPE_CHECK_INSTANCE_TYPE ((o), \
  190. @@ -50,21 +50,21 @@ G_BEGIN_DECLS
  191. #define SIMPLE_DAAP_RECORD_FACTORY_GET_CLASS(o) \
  192. (G_TYPE_INSTANCE_GET_CLASS ((o), \
  193. TYPE_SIMPLE_DAAP_RECORD_FACTORY, \
  194. - GrlDAAPRecordFactoryClass))
  195. + GrlDaapRecordFactoryClass))
  196. -typedef struct GrlDAAPRecordFactoryPrivate GrlDAAPRecordFactoryPrivate;
  197. +typedef struct GrlDaapRecordFactoryPrivate GrlDaapRecordFactoryPrivate;
  198. typedef struct {
  199. GObject parent;
  200. -} GrlDAAPRecordFactory;
  201. +} GrlDaapRecordFactory;
  202. typedef struct {
  203. GObjectClass parent;
  204. -} GrlDAAPRecordFactoryClass;
  205. +} GrlDaapRecordFactoryClass;
  206. GType grl_daap_record_factory_get_type (void);
  207. -GrlDAAPRecordFactory *grl_daap_record_factory_new (void);
  208. +GrlDaapRecordFactory *grl_daap_record_factory_new (void);
  209. #endif /* __SIMPLE_DAAP_RECORD_FACTORY */
  210. diff --git a/src/dmap/grl-daap-record.c b/src/dmap/grl-daap-record.c
  211. index 4fa0c54..f54d6b8 100644
  212. --- a/src/dmap/grl-daap-record.c
  213. +++ b/src/dmap/grl-daap-record.c
  214. @@ -27,7 +27,7 @@
  215. #include "grl-common.h"
  216. #include "grl-daap-record.h"
  217. -struct GrlDAAPRecordPrivate {
  218. +struct GrlDaapRecordPrivate {
  219. guint64 filesize;
  220. char *location;
  221. char *format;
  222. @@ -78,7 +78,7 @@ grl_daap_record_set_property (GObject *object,
  223. const GValue *value,
  224. GParamSpec *pspec)
  225. {
  226. - GrlDAAPRecord *record = SIMPLE_DAAP_RECORD (object);
  227. + GrlDaapRecord *record = SIMPLE_DAAP_RECORD (object);
  228. switch (prop_id) {
  229. case PROP_LOCATION:
  230. @@ -158,7 +158,7 @@ grl_daap_record_get_property (GObject *object,
  231. GValue *value,
  232. GParamSpec *pspec)
  233. {
  234. - GrlDAAPRecord *record = SIMPLE_DAAP_RECORD (object);
  235. + GrlDaapRecord *record = SIMPLE_DAAP_RECORD (object);
  236. switch (prop_id) {
  237. case PROP_LOCATION:
  238. @@ -224,7 +224,7 @@ grl_daap_record_get_property (GObject *object,
  239. }
  240. }
  241. -GrlDAAPRecord *
  242. +GrlDaapRecord *
  243. grl_daap_record_new (void)
  244. {
  245. return SIMPLE_DAAP_RECORD (g_object_new (TYPE_SIMPLE_DAAP_RECORD, NULL));
  246. @@ -245,7 +245,7 @@ grl_daap_record_read (DmapAvRecord *record, GError **error)
  247. }
  248. static void
  249. -grl_daap_record_init (GrlDAAPRecord *record)
  250. +grl_daap_record_init (GrlDaapRecord *record)
  251. {
  252. record->priv = SIMPLE_DAAP_RECORD_GET_PRIVATE (record);
  253. }
  254. @@ -253,7 +253,7 @@ grl_daap_record_init (GrlDAAPRecord *record)
  255. static void grl_daap_record_finalize (GObject *object);
  256. static void
  257. -grl_daap_record_class_init (GrlDAAPRecordClass *klass)
  258. +grl_daap_record_class_init (GrlDaapRecordClass *klass)
  259. {
  260. GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
  261. @@ -301,15 +301,15 @@ grl_daap_record_dmap_iface_init (gpointer iface, gpointer data)
  262. }
  263. -G_DEFINE_TYPE_WITH_CODE (GrlDAAPRecord, grl_daap_record, G_TYPE_OBJECT,
  264. - G_ADD_PRIVATE (GrlDAAPRecord)
  265. +G_DEFINE_TYPE_WITH_CODE (GrlDaapRecord, grl_daap_record, G_TYPE_OBJECT,
  266. + G_ADD_PRIVATE (GrlDaapRecord)
  267. G_IMPLEMENT_INTERFACE (DMAP_TYPE_AV_RECORD, grl_daap_record_daap_iface_init)
  268. G_IMPLEMENT_INTERFACE (DMAP_TYPE_RECORD, grl_daap_record_dmap_iface_init))
  269. static void
  270. grl_daap_record_finalize (GObject *object)
  271. {
  272. - GrlDAAPRecord *record = SIMPLE_DAAP_RECORD (object);
  273. + GrlDaapRecord *record = SIMPLE_DAAP_RECORD (object);
  274. g_free (record->priv->location);
  275. g_free (record->priv->title);
  276. diff --git a/src/dmap/grl-daap-record.h b/src/dmap/grl-daap-record.h
  277. index 42782b1..b6e8c34 100644
  278. --- a/src/dmap/grl-daap-record.h
  279. +++ b/src/dmap/grl-daap-record.h
  280. @@ -32,12 +32,12 @@ G_BEGIN_DECLS
  281. #define SIMPLE_DAAP_RECORD(o) \
  282. (G_TYPE_CHECK_INSTANCE_CAST ((o), \
  283. TYPE_SIMPLE_DAAP_RECORD, \
  284. - GrlDAAPRecord))
  285. + GrlDaapRecord))
  286. #define SIMPLE_DAAP_RECORD_CLASS(k) \
  287. (G_TYPE_CHECK_CLASS_CAST ((k), \
  288. TYPE_SIMPLE_DAAP_RECORD, \
  289. - GrlDAAPRecordClass))
  290. + GrlDaapRecordClass))
  291. #define IS_SIMPLE_DAAP_RECORD(o) \
  292. (G_TYPE_CHECK_INSTANCE_TYPE ((o), \
  293. @@ -50,27 +50,27 @@ G_BEGIN_DECLS
  294. #define SIMPLE_DAAP_RECORD_GET_CLASS(o) \
  295. (G_TYPE_INSTANCE_GET_CLASS ((o), \
  296. TYPE_SIMPLE_DAAP_RECORD, \
  297. - GrlDAAPRecordClass))
  298. + GrlDaapRecordClass))
  299. #define SIMPLE_DAAP_RECORD_GET_PRIVATE(o) \
  300. (G_TYPE_INSTANCE_GET_PRIVATE ((o), \
  301. TYPE_SIMPLE_DAAP_RECORD, \
  302. - GrlDAAPRecordPrivate))
  303. + GrlDaapRecordPrivate))
  304. -typedef struct GrlDAAPRecordPrivate GrlDAAPRecordPrivate;
  305. +typedef struct GrlDaapRecordPrivate GrlDaapRecordPrivate;
  306. typedef struct {
  307. GObject parent;
  308. - GrlDAAPRecordPrivate *priv;
  309. -} GrlDAAPRecord;
  310. + GrlDaapRecordPrivate *priv;
  311. +} GrlDaapRecord;
  312. typedef struct {
  313. GObjectClass parent;
  314. -} GrlDAAPRecordClass;
  315. +} GrlDaapRecordClass;
  316. GType grl_daap_record_get_type (void);
  317. -GrlDAAPRecord *grl_daap_record_new (void);
  318. +GrlDaapRecord *grl_daap_record_new (void);
  319. GInputStream *grl_daap_record_read (DmapAvRecord *record, GError **error);
  320. gint grl_daap_record_get_id (DmapAvRecord *record);
  321. diff --git a/src/dmap/grl-dpap-db.c b/src/dmap/grl-dpap-db.c
  322. index cd647ee..56be8b0 100644
  323. --- a/src/dmap/grl-dpap-db.c
  324. +++ b/src/dmap/grl-dpap-db.c
  325. @@ -42,7 +42,7 @@
  326. /* Media IDs start at max and go down. Container IDs start at 1 and go up. */
  327. static guint nextid = G_MAXINT; /* NOTE: this should be G_MAXUINT, but iPhoto can't handle it. */
  328. -struct GrlDPAPDbPrivate {
  329. +struct GrlDpapDbPrivate {
  330. /* Contains each picture container (tracked with photos hash table) */
  331. GrlMedia *photos_container;
  332. @@ -67,10 +67,10 @@ container_equal (gconstpointer a, gconstpointer b)
  333. return g_str_equal (grl_media_get_id (GRL_MEDIA (a)), grl_media_get_id (GRL_MEDIA (b)));
  334. }
  335. -GrlDPAPDb *
  336. +GrlDpapDb *
  337. grl_dpap_db_new (void)
  338. {
  339. - GrlDPAPDb *db = g_object_new (TYPE_GRL_DPAP_DB, NULL);
  340. + GrlDpapDb *db = g_object_new (TYPE_GRL_DPAP_DB, NULL);
  341. return db;
  342. }
  343. @@ -128,7 +128,7 @@ grl_dpap_db_add (DmapDb *_db, DmapRecord *_record, GError **error)
  344. g_assert (IS_GRL_DPAP_DB (_db));
  345. g_assert (IS_DMAP_IMAGE_RECORD (_record));
  346. - GrlDPAPDb *db = GRL_DPAP_DB (_db);
  347. + GrlDpapDb *db = GRL_DPAP_DB (_db);
  348. DmapImageRecord *record = DMAP_IMAGE_RECORD (_record);
  349. gint height = 0,
  350. @@ -198,7 +198,7 @@ same_media (GrlMedia *a, GrlMedia *b)
  351. }
  352. void
  353. -grl_dpap_db_browse (GrlDPAPDb *db,
  354. +grl_dpap_db_browse (GrlDpapDb *db,
  355. GrlMedia *container,
  356. GrlSource *source,
  357. guint op_id,
  358. @@ -250,7 +250,7 @@ done:
  359. }
  360. void
  361. -grl_dpap_db_search (GrlDPAPDb *db,
  362. +grl_dpap_db_search (GrlDpapDb *db,
  363. GrlSource *source,
  364. guint op_id,
  365. GHRFunc predicate,
  366. @@ -312,8 +312,8 @@ dmap_db_interface_init (gpointer iface, gpointer data)
  367. dpap_db->count = grl_dpap_db_count;
  368. }
  369. -G_DEFINE_TYPE_WITH_CODE (GrlDPAPDb, grl_dpap_db, G_TYPE_OBJECT,
  370. - G_ADD_PRIVATE (GrlDPAPDb)
  371. +G_DEFINE_TYPE_WITH_CODE (GrlDpapDb, grl_dpap_db, G_TYPE_OBJECT,
  372. + G_ADD_PRIVATE (GrlDpapDb)
  373. G_IMPLEMENT_INTERFACE (DMAP_TYPE_DB, dmap_db_interface_init))
  374. static GObject*
  375. @@ -327,7 +327,7 @@ grl_dpap_db_constructor (GType type, guint n_construct_params, GObjectConstructP
  376. }
  377. static void
  378. -grl_dpap_db_init (GrlDPAPDb *db)
  379. +grl_dpap_db_init (GrlDpapDb *db)
  380. {
  381. db->priv = grl_dpap_db_get_instance_private (db);
  382. @@ -345,9 +345,9 @@ grl_dpap_db_init (GrlDPAPDb *db)
  383. static void
  384. grl_dpap_db_finalize (GObject *object)
  385. {
  386. - GrlDPAPDb *db = GRL_DPAP_DB (object);
  387. + GrlDpapDb *db = GRL_DPAP_DB (object);
  388. - GRL_DEBUG ("Finalizing GrlDPAPDb");
  389. + GRL_DEBUG ("Finalizing GrlDpapDb");
  390. g_object_unref (db->priv->photos_container);
  391. @@ -355,7 +355,7 @@ grl_dpap_db_finalize (GObject *object)
  392. }
  393. static void
  394. -grl_dpap_db_class_init (GrlDPAPDbClass *klass)
  395. +grl_dpap_db_class_init (GrlDpapDbClass *klass)
  396. {
  397. GObjectClass *object_class = G_OBJECT_CLASS (klass);
  398. diff --git a/src/dmap/grl-dpap-db.h b/src/dmap/grl-dpap-db.h
  399. index a21ad7a..23ae4c1 100644
  400. --- a/src/dmap/grl-dpap-db.h
  401. +++ b/src/dmap/grl-dpap-db.h
  402. @@ -33,12 +33,12 @@ G_BEGIN_DECLS
  403. #define GRL_DPAP_DB(o) \
  404. (G_TYPE_CHECK_INSTANCE_CAST ((o), \
  405. TYPE_GRL_DPAP_DB, \
  406. - GrlDPAPDb))
  407. + GrlDpapDb))
  408. #define GRL_DPAP_DB_CLASS(k) \
  409. (G_TYPE_CHECK_CLASS_CAST ((k), \
  410. TYPE_GRL_DPAP_DB, \
  411. - GrlDPAPDbClass))
  412. + GrlDpapDbClass))
  413. #define IS_GRL_DPAP_DB(o) \
  414. (G_TYPE_CHECK_INSTANCE_TYPE ((o), \
  415. TYPE_GRL_DPAP_DB))
  416. @@ -49,26 +49,26 @@ G_BEGIN_DECLS
  417. #define GRL_DPAP_DB_GET_CLASS(o) \
  418. (G_TYPE_INSTANCE_GET_CLASS ((o), \
  419. TYPE_GRL_DPAP_DB, \
  420. - GrlDPAPDbClass))
  421. + GrlDpapDbClass))
  422. #define GRL_DPAP_DB_GET_PRIVATE(o) \
  423. (G_TYPE_INSTANCE_GET_PRIVATE ((o), \
  424. TYPE_GRL_DPAP_DB, \
  425. - GrlDPAPDbPrivate))
  426. + GrlDpapDbPrivate))
  427. -typedef struct GrlDPAPDbPrivate GrlDPAPDbPrivate;
  428. +typedef struct GrlDpapDbPrivate GrlDpapDbPrivate;
  429. typedef struct {
  430. GObject parent;
  431. - GrlDPAPDbPrivate *priv;
  432. -} GrlDPAPDb;
  433. + GrlDpapDbPrivate *priv;
  434. +} GrlDpapDb;
  435. typedef struct {
  436. GObjectClass parent;
  437. -} GrlDPAPDbClass;
  438. +} GrlDpapDbClass;
  439. -GrlDPAPDb *grl_dpap_db_new (void);
  440. -void grl_dpap_db_browse (GrlDPAPDb *_db,
  441. +GrlDpapDb *grl_dpap_db_new (void);
  442. +void grl_dpap_db_browse (GrlDpapDb *_db,
  443. GrlMedia *container,
  444. GrlSource *source,
  445. guint op_id,
  446. @@ -76,7 +76,7 @@ void grl_dpap_db_browse (GrlDPAPDb *_db,
  447. guint count,
  448. GrlSourceResultCb func,
  449. gpointer user_data);
  450. -void grl_dpap_db_search (GrlDPAPDb *_db,
  451. +void grl_dpap_db_search (GrlDpapDb *_db,
  452. GrlSource *source,
  453. guint op_id,
  454. GHRFunc predicate,
  455. diff --git a/src/dmap/grl-dpap-record-factory.c b/src/dmap/grl-dpap-record-factory.c
  456. index 860d957..d106d0f 100644
  457. --- a/src/dmap/grl-dpap-record-factory.c
  458. +++ b/src/dmap/grl-dpap-record-factory.c
  459. @@ -35,12 +35,12 @@ grl_dpap_record_factory_create (DmapRecordFactory *factory,
  460. }
  461. static void
  462. -grl_dpap_record_factory_init (GrlDPAPRecordFactory *factory)
  463. +grl_dpap_record_factory_init (GrlDpapRecordFactory *factory)
  464. {
  465. }
  466. static void
  467. -grl_dpap_record_factory_class_init (GrlDPAPRecordFactoryClass *klass)
  468. +grl_dpap_record_factory_class_init (GrlDpapRecordFactoryClass *klass)
  469. {
  470. }
  471. @@ -54,11 +54,11 @@ grl_dpap_record_factory_interface_init (gpointer iface, gpointer data)
  472. factory->create = grl_dpap_record_factory_create_compat;
  473. }
  474. -G_DEFINE_TYPE_WITH_CODE (GrlDPAPRecordFactory, grl_dpap_record_factory, G_TYPE_OBJECT,
  475. +G_DEFINE_TYPE_WITH_CODE (GrlDpapRecordFactory, grl_dpap_record_factory, G_TYPE_OBJECT,
  476. G_IMPLEMENT_INTERFACE (DMAP_TYPE_RECORD_FACTORY,
  477. grl_dpap_record_factory_interface_init))
  478. -GrlDPAPRecordFactory *
  479. +GrlDpapRecordFactory *
  480. grl_dpap_record_factory_new (void)
  481. {
  482. return SIMPLE_DPAP_RECORD_FACTORY (g_object_new (TYPE_SIMPLE_DPAP_RECORD_FACTORY, NULL));
  483. diff --git a/src/dmap/grl-dpap-record-factory.h b/src/dmap/grl-dpap-record-factory.h
  484. index 899fd0a..9758aa5 100644
  485. --- a/src/dmap/grl-dpap-record-factory.h
  486. +++ b/src/dmap/grl-dpap-record-factory.h
  487. @@ -1,5 +1,5 @@
  488. /*
  489. - * GrlDPAPRecord factory class
  490. + * GrlDpapRecord factory class
  491. *
  492. * Copyright (C) 2008 W. Michael Petullo <mike@flyn.org>
  493. *
  494. @@ -32,12 +32,12 @@ G_BEGIN_DECLS
  495. #define SIMPLE_DPAP_RECORD_FACTORY(o) \
  496. (G_TYPE_CHECK_INSTANCE_CAST ((o), \
  497. TYPE_SIMPLE_DPAP_RECORD_FACTORY, \
  498. - GrlDPAPRecordFactory))
  499. + GrlDpapRecordFactory))
  500. #define SIMPLE_DPAP_RECORD_FACTORY_CLASS(k) \
  501. (G_TYPE_CHECK_CLASS_CAST ((k), \
  502. TYPE_SIMPLE_DPAP_RECORD_FACTORY, \
  503. - GrlDPAPRecordFactoryClass))
  504. + GrlDpapRecordFactoryClass))
  505. #define IS_SIMPLE_DPAP_RECORD_FACTORY(o) \
  506. (G_TYPE_CHECK_INSTANCE_TYPE ((o), \
  507. @@ -50,21 +50,21 @@ G_BEGIN_DECLS
  508. #define SIMPLE_DPAP_RECORD_FACTORY_GET_CLASS(o) \
  509. (G_TYPE_INSTANCE_GET_CLASS ((o), \
  510. TYPE_SIMPLE_DPAP_RECORD_FACTORY, \
  511. - GrlDPAPRecordFactoryClass))
  512. + GrlDpapRecordFactoryClass))
  513. -typedef struct GrlDPAPRecordFactoryPrivate GrlDPAPRecordFactoryPrivate;
  514. +typedef struct GrlDpapRecordFactoryPrivate GrlDpapRecordFactoryPrivate;
  515. typedef struct {
  516. GObject parent;
  517. -} GrlDPAPRecordFactory;
  518. +} GrlDpapRecordFactory;
  519. typedef struct {
  520. GObjectClass parent;
  521. -} GrlDPAPRecordFactoryClass;
  522. +} GrlDpapRecordFactoryClass;
  523. GType grl_dpap_record_factory_get_type (void);
  524. -GrlDPAPRecordFactory *grl_dpap_record_factory_new (void);
  525. +GrlDpapRecordFactory *grl_dpap_record_factory_new (void);
  526. DmapRecord *grl_dpap_record_factory_create (DmapRecordFactory *factory, gpointer user_data, GError **error);
  527. diff --git a/src/dmap/grl-dpap-record.c b/src/dmap/grl-dpap-record.c
  528. index 0afb2b8..423b9ed 100644
  529. --- a/src/dmap/grl-dpap-record.c
  530. +++ b/src/dmap/grl-dpap-record.c
  531. @@ -27,7 +27,7 @@
  532. #include "grl-common.h"
  533. #include "grl-dpap-record.h"
  534. -struct GrlDPAPRecordPrivate {
  535. +struct GrlDpapRecordPrivate {
  536. char *location;
  537. gint largefilesize;
  538. gint creationdate;
  539. @@ -59,8 +59,8 @@ enum {
  540. static void grl_dpap_record_dmap_iface_init (gpointer iface, gpointer data);
  541. static void grl_dpap_record_dpap_iface_init (gpointer iface, gpointer data);
  542. -G_DEFINE_TYPE_WITH_CODE (GrlDPAPRecord, grl_dpap_record, G_TYPE_OBJECT,
  543. - G_ADD_PRIVATE (GrlDPAPRecord)
  544. +G_DEFINE_TYPE_WITH_CODE (GrlDpapRecord, grl_dpap_record, G_TYPE_OBJECT,
  545. + G_ADD_PRIVATE (GrlDpapRecord)
  546. G_IMPLEMENT_INTERFACE (DMAP_TYPE_IMAGE_RECORD, grl_dpap_record_dpap_iface_init)
  547. G_IMPLEMENT_INTERFACE (DMAP_TYPE_RECORD, grl_dpap_record_dmap_iface_init))
  548. @@ -70,7 +70,7 @@ grl_dpap_record_set_property (GObject *object,
  549. const GValue *value,
  550. GParamSpec *pspec)
  551. {
  552. - GrlDPAPRecord *record = SIMPLE_DPAP_RECORD (object);
  553. + GrlDpapRecord *record = SIMPLE_DPAP_RECORD (object);
  554. switch (prop_id) {
  555. case PROP_LOCATION:
  556. @@ -123,7 +123,7 @@ grl_dpap_record_get_property (GObject *object,
  557. GValue *value,
  558. GParamSpec *pspec)
  559. {
  560. - GrlDPAPRecord *record = SIMPLE_DPAP_RECORD (object);
  561. + GrlDpapRecord *record = SIMPLE_DPAP_RECORD (object);
  562. switch (prop_id) {
  563. case PROP_LOCATION:
  564. @@ -165,7 +165,7 @@ grl_dpap_record_get_property (GObject *object,
  565. }
  566. }
  567. -GrlDPAPRecord *
  568. +GrlDpapRecord *
  569. grl_dpap_record_new (void)
  570. {
  571. return SIMPLE_DPAP_RECORD (g_object_new (TYPE_SIMPLE_DPAP_RECORD, NULL));
  572. @@ -186,7 +186,7 @@ grl_dpap_record_read (DmapImageRecord *record, GError **error)
  573. }
  574. static void
  575. -grl_dpap_record_init (GrlDPAPRecord *record)
  576. +grl_dpap_record_init (GrlDpapRecord *record)
  577. {
  578. record->priv = grl_dpap_record_get_instance_private (record);
  579. }
  580. @@ -194,7 +194,7 @@ grl_dpap_record_init (GrlDPAPRecord *record)
  581. static void grl_dpap_record_finalize (GObject *object);
  582. static void
  583. -grl_dpap_record_class_init (GrlDPAPRecordClass *klass)
  584. +grl_dpap_record_class_init (GrlDpapRecordClass *klass)
  585. {
  586. GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
  587. @@ -236,7 +236,7 @@ grl_dpap_record_dmap_iface_init (gpointer iface, gpointer data)
  588. static void
  589. grl_dpap_record_finalize (GObject *object)
  590. {
  591. - GrlDPAPRecord *record = SIMPLE_DPAP_RECORD (object);
  592. + GrlDpapRecord *record = SIMPLE_DPAP_RECORD (object);
  593. g_free (record->priv->location);
  594. g_free (record->priv->filename);
  595. diff --git a/src/dmap/grl-dpap-record.h b/src/dmap/grl-dpap-record.h
  596. index 77eece0..23a7a74 100644
  597. --- a/src/dmap/grl-dpap-record.h
  598. +++ b/src/dmap/grl-dpap-record.h
  599. @@ -32,12 +32,12 @@ G_BEGIN_DECLS
  600. #define SIMPLE_DPAP_RECORD(o) \
  601. (G_TYPE_CHECK_INSTANCE_CAST ((o), \
  602. TYPE_SIMPLE_DPAP_RECORD, \
  603. - GrlDPAPRecord))
  604. + GrlDpapRecord))
  605. #define SIMPLE_DPAP_RECORD_CLASS(k) \
  606. (G_TYPE_CHECK_CLASS_CAST ((k), \
  607. TYPE_SIMPLE_DPAP_RECORD, \
  608. - GrlDPAPRecordClass))
  609. + GrlDpapRecordClass))
  610. #define IS_SIMPLE_DPAP_RECORD(o) \
  611. (G_TYPE_CHECK_INSTANCE_TYPE ((o), \
  612. @@ -50,27 +50,27 @@ G_BEGIN_DECLS
  613. #define SIMPLE_DPAP_RECORD_GET_CLASS(o) \
  614. (G_TYPE_INSTANCE_GET_CLASS ((o), \
  615. TYPE_SIMPLE_DPAP_RECORD, \
  616. - GrlDPAPRecordClass))
  617. + GrlDpapRecordClass))
  618. #define SIMPLE_DPAP_RECORD_GET_PRIVATE(o) \
  619. (G_TYPE_INSTANCE_GET_PRIVATE ((o), \
  620. TYPE_SIMPLE_DPAP_RECORD, \
  621. - GrlDPAPRecordPrivate))
  622. + GrlDpapRecordPrivate))
  623. -typedef struct GrlDPAPRecordPrivate GrlDPAPRecordPrivate;
  624. +typedef struct GrlDpapRecordPrivate GrlDpapRecordPrivate;
  625. typedef struct {
  626. GObject parent;
  627. - GrlDPAPRecordPrivate *priv;
  628. -} GrlDPAPRecord;
  629. + GrlDpapRecordPrivate *priv;
  630. +} GrlDpapRecord;
  631. typedef struct {
  632. GObjectClass parent;
  633. -} GrlDPAPRecordClass;
  634. +} GrlDpapRecordClass;
  635. GType grl_dpap_record_get_type (void);
  636. -GrlDPAPRecord *grl_dpap_record_new (void);
  637. +GrlDpapRecord *grl_dpap_record_new (void);
  638. GInputStream *grl_dpap_record_read (DmapImageRecord *record, GError **error);
  639. gint grl_dpap_record_get_id (DmapImageRecord *record);