YouTube API

YouTube API — YouTube namespace API

Stability Level

Unstable, unless otherwise indicated

Synopsis


#include <gdata/services/youtube/gdata-youtube.h>

                    GDataYouTubeState;
GDataYouTubeState * gdata_youtube_state_new             (const gchar *name,
                                                         const gchar *message,
                                                         const gchar *reason_code,
                                                         const gchar *help_uri);
void                gdata_youtube_state_free            (GDataYouTubeState *self);

Description

The structures here represent several core elements in the YouTube specification which are used exclusively in the YouTube API.

Details

GDataYouTubeState

typedef struct {
	gchar *name;
	gchar *reason_code;
	gchar *help_uri;
	gchar *message;
} GDataYouTubeState;

A structure fully representing a YouTube "state" element. All fields are required.

See the YouTube specification for more information.

gchar *name;

the publishing status of the video

gchar *reason_code;

code providing information about why a video failed to upload or was rejected during processing

gchar *help_uri;

a URI for a page explaining the problem

gchar *message;

a human-readable message explaining the problem

gdata_youtube_state_new ()

GDataYouTubeState * gdata_youtube_state_new             (const gchar *name,
                                                         const gchar *message,
                                                         const gchar *reason_code,
                                                         const gchar *help_uri);

Creates a new GDataYouTubeState. More information is available in the YouTube specification.

name :

the publishing status of the video

message :

a human-readable message explaining the problem, or NULL

reason_code :

code providing information about why a video failed to upload or was rejected during processing

help_uri :

a URI for a page explaining the problem, or NULL

Returns :

a new GDataYouTubeState, or NULL; free with gdata_youtube_state_free()

gdata_youtube_state_free ()

void                gdata_youtube_state_free            (GDataYouTubeState *self);

Frees a GDataYouTubeState.

self :

a GDataYouTubeState