Rhythmbox Development Reference Manual: RBMediaPlayerSource

## RBMediaPlayerSource RBMediaPlayerSource |

## Functions

void | (*RBMediaPlayerSourceDeleteCallback) ()
void | rb_media_player_source_load ()
guint64 | rb_media_player_source_get_capacity ()
guint64 | rb_media_player_source_get_free_space ()
void | rb_media_player_source_get_entries ()
void | rb_media_player_source_delete_entries ()
void | rb_media_player_source_show_properties ()
void | rb_media_player_source_sync ()

## Properties

GstEncodingTarget * | encoding-target | Read / Write
gchar * | serial | Read

## Types and Values

struct | RBMediaPlayerSource
struct | RBMediaPlayerSourceClass

## Object Hierarchy

        GObject
        ╰── GInitiallyUnowned
            ╰── GtkWidget
                ╰── GtkContainer
                    ╰── GtkBox
                        ╰── RBDisplayPage
                            ╰── RBSource
                                ╰── RBBrowserSource
                                    ╰── RBMediaPlayerSource

## Implemented Interfaces

RBMediaPlayerSource implements AtkImplementorIface, GtkBuildable and GtkOrientable.

## Description

## Functions

### RBMediaPlayerSourceDeleteCallback ()

    void
    (*RBMediaPlayerSourceDeleteCallback) (RBMediaPlayerSource *source,
                                          gpointer data);

### rb_media_player_source_load ()

    void
    rb_media_player_source_load (RBMediaPlayerSource *source);

### rb_media_player_source_get_capacity ()

    guint64
    rb_media_player_source_get_capacity (RBMediaPlayerSource *source);

#### Returns

### rb_media_player_source_get_free_space ()

    guint64
    rb_media_player_source_get_free_space (RBMediaPlayerSource *source);

#### Returns

### rb_media_player_source_get_entries ()

    void
    rb_media_player_source_get_entries (RBMediaPlayerSource *source,
                                        const char *category,
                                        GHashTable *entries);

#### Parameters

source | the RBMediaPlayerSource |
category | the sync category name |
entries | map to hold the entries. | [element-type utf8 RB.RhythmDBEntry]

### rb_media_player_source_delete_entries ()

    void
    rb_media_player_source_delete_entries (RBMediaPlayerSource *source,
                                           GList *entries,
                                           RBMediaPlayerSourceDeleteCallback callback,
                                           gpointer user_data,
                                           GDestroyNotify destroy_data);

#### Parameters

source | the RBMediaPlayerSource |
entries | list of entries to delete. | [element-type RB.RhythmDBEntry][transfer full]
callback | callback to call on completion |
user_data | data for callback. | [closure][scope notified]
destroy_data | callback to free the callback data |

### rb_media_player_source_show_properties ()

    void
    rb_media_player_source_show_properties
                                   (RBMediaPlayerSource *source);

### rb_media_player_source_sync ()

    void
    rb_media_player_source_sync (RBMediaPlayerSource *source);

## Types and Values

### struct RBMediaPlayerSource

    struct RBMediaPlayerSource;

### struct RBMediaPlayerSourceClass

    struct RBMediaPlayerSourceClass {
    	RBBrowserSourceClass parent_class;

    	/* class members */
    	void		(*get_entries) (RBMediaPlayerSource *source, const char *category, GHashTable *map);
    	guint64		(*get_capacity) (RBMediaPlayerSource *source);
    	guint64		(*get_free_space) (RBMediaPlayerSource *source);
    	void		(*delete_entries) (RBMediaPlayerSource *source,
    						 GList *entries,
    						 RBMediaPlayerSourceDeleteCallback callback,
    						 gpointer data,
    						 GDestroyNotify destroy_data);
    	void		(*add_playlist) (RBMediaPlayerSource *source, gchar *name, GList *entries);
    	void		(*remove_playlists) (RBMediaPlayerSource *source);
    	void		(*show_properties) (RBMediaPlayerSource *source, GtkWidget *info_box, GtkWidget *notebook);
    };

## Property Details

### The `“encoding-target”` property

      “encoding-target”          GstEncodingTarget *

The GstEncodingTarget for this device

Flags: Read / Write

### The `“serial”` property

      “serial”                   gchar *

device serial number.

Flags: Read

Default value: NULL