| Top |
| #define | GTUBER_WEBSITE_PLUGIN_DECLARE() |
| #define | GTUBER_WEBSITE_PLUGIN_DEFINE() |
| #define | GTUBER_WEBSITE_PLUGIN_EXPORT_SCHEMES() |
| #define | GTUBER_WEBSITE_PLUGIN_EXPORT_HOSTS() |
| const gchar * | gtuber_website_get_uri () |
| void | gtuber_website_set_uri () |
| GQuark | gtuber_website_error_quark () |
#define GTUBER_WEBSITE_PLUGIN_DECLARE(camel,lower,upper)
Convenient macro to declare a new plugin that extends GtuberWebsite.
#define GTUBER_WEBSITE_PLUGIN_DEFINE(camel,lower)
Convenient macro that wraps around G_DEFINE_TYPE with GtuberWebsite.
#define GTUBER_WEBSITE_PLUGIN_EXPORT_SCHEMES(...)
Convenient macro that exports plugin supported schemes.
#define GTUBER_WEBSITE_PLUGIN_EXPORT_HOSTS(...)
Convenient macro that exports plugin supported hosts.
void gtuber_website_set_uri (GtuberWebsite *website,const gchar *uri);
Set current requested URI.
This is only useful for plugin implementations where user requested URI needs to be altered, otherwise GtuberClient will set it automatically.
struct GtuberWebsiteClass {
GObjectClass parent_class;
gboolean handles_input_stream;
void (* prepare) (GtuberWebsite *website);
GtuberFlow (* create_request) (GtuberWebsite *website,
GtuberMediaInfo *info,
SoupMessage **msg,
GError **error);
GtuberFlow (* read_response) (GtuberWebsite *website,
SoupMessage *msg,
GError **error);
GtuberFlow (* parse_data) (GtuberWebsite *website,
gchar *data,
GtuberMediaInfo *info,
GError **error);
GtuberFlow (* parse_input_stream) (GtuberWebsite *website,
GInputStream *stream,
GtuberMediaInfo *info,
GError **error);
GtuberFlow (* set_user_req_headers) (GtuberWebsite *website,
SoupMessageHeaders *req_headers,
GHashTable *user_headers,
GError **error);
};
When set to |
||
If plugin needs to do some post init blocking IO (like reading cache) before it can be used, this is a good place to do so. |
||
Create and pass SoupMessage to send. |
||
Use to check SoupStatus and response SoupMessageHeaders from send SoupMessage. |
||
Read data of response body and fill GtuberMediaInfo. |
||
Read GInputStream and fill GtuberMediaInfo. |
||
Set request headers for user. Default implementation will set them from last SoupMessage, skipping some common and invalid ones. |