## WebKitPlugin

WebKitPlugin — Represents a plugin, enabling fine-grained control

## Synopsis

    struct              WebKitPlugin;
    const gchar *       webkit_plugin_get_name              (WebKitPlugin *plugin);
    const gchar *       webkit_plugin_get_description       (WebKitPlugin *plugin);
    const gchar *       webkit_plugin_get_path              (WebKitPlugin *plugin);
    GList *             webkit_plugin_get_mime_info_list    (WebKitPlugin *plugin);

                        WebKitMimeInfo;
    WebKitMimeInfo *    webkit_mime_info_ref                (WebKitMimeInfo *info);
    void                webkit_mime_info_unref              (WebKitMimeInfo *info);
    const gchar *       webkit_mime_info_get_mime_type      (WebKitMimeInfo *info);
    const gchar *       webkit_mime_info_get_description    (WebKitMimeInfo *info);
    const gchar * const * webkit_mime_info_get_extensions   (WebKitMimeInfo *info);

## Object Hierarchy

      GObject
       +----WebKitPlugin

      GBoxed
       +----WebKitMimeInfo

## Description

This object represents a single plugin, found while scanning the various platform plugin directories. This object can be used to get more information about a plugin, and enable/disable it, allowing fine-grained control of plugins. The list of available plugins can be obtained from the WebKitWebContext, with `webkit_web_context_get_plugins()`.

## Details

### struct WebKitPlugin

    struct WebKitPlugin;

### webkit_plugin_get_name ()

    const gchar *       webkit_plugin_get_name              (WebKitPlugin *plugin);

`plugin` : | a WebKitPlugin
Returns : | the name of the plugin.

### webkit_plugin_get_description ()

    const gchar *       webkit_plugin_get_description       (WebKitPlugin *plugin);

`plugin` : | a WebKitPlugin
Returns : | the description of the plugin.

### webkit_plugin_get_path ()

    const gchar *       webkit_plugin_get_path              (WebKitPlugin *plugin);

`plugin` : | a WebKitPlugin
Returns : | the absolute path where the plugin is installed.

### webkit_plugin_get_mime_info_list ()

    GList *             webkit_plugin_get_mime_info_list    (WebKitPlugin *plugin);

Get information about MIME types handled by the plugin, as a list of WebKitMimeInfo.

`plugin` : | a WebKitPlugin
Returns : | a GList of WebKitMimeInfo. [element-type WebKitMimeInfo][transfer none]

### WebKitMimeInfo

    typedef struct _WebKitMimeInfo WebKitMimeInfo;

### webkit_mime_info_ref ()

    WebKitMimeInfo *    webkit_mime_info_ref                (WebKitMimeInfo *info);

Atomically increments the reference count of `info` by one. This function is MT-safe and may be called from any thread.

`info` : | a WebKitMimeInfo
Returns : | The passed in WebKitMimeInfo

### webkit_mime_info_unref ()

    void                webkit_mime_info_unref              (WebKitMimeInfo *info);

Atomically decrements the reference count of `info` by one. If the reference count drops to 0, all memory allocated by the WebKitMimeInfo is released. This function is MT-safe and may be called from any thread.

`info` : | a WebKitMimeInfo

### webkit_mime_info_get_mime_type ()

    const gchar *       webkit_mime_info_get_mime_type      (WebKitMimeInfo *info);

`info` : | a WebKitMimeInfo
Returns : | the MIME type of `info`

### webkit_mime_info_get_description ()

    const gchar *       webkit_mime_info_get_description    (WebKitMimeInfo *info);

`info` : | a WebKitMimeInfo
Returns : | the description of the MIME type of `info`

### webkit_mime_info_get_extensions ()

    const gchar * const * webkit_mime_info_get_extensions   (WebKitMimeInfo *info);

Get the list of file extensions associated to the MIME type of `info`

`info` : | a WebKitMimeInfo
Returns : | a `NULL`-terminated array of strings. [array zero-terminated=1][transfer none]