Top |
WebKitApplicationInfo * | webkit_application_info_new () |
WebKitApplicationInfo * | webkit_application_info_ref () |
void | webkit_application_info_unref () |
void | webkit_application_info_set_name () |
const gchar * | webkit_application_info_get_name () |
void | webkit_application_info_set_version () |
void | webkit_application_info_get_version () |
WebKitApplicationInfo *
webkit_application_info_new (void
);
Creates a new WebKitApplicationInfo
Since: 2.18
WebKitApplicationInfo *
webkit_application_info_ref (WebKitApplicationInfo *info
);
Atomically increments the reference count of info
by one. This
function is MT-safe and may be called from any thread.
Since: 2.18
void
webkit_application_info_unref (WebKitApplicationInfo *info
);
Atomically decrements the reference count of info
by one. If the
reference count drops to 0, all memory allocated by the WebKitApplicationInfo is
released. This function is MT-safe and may be called from any
thread.
Since: 2.18
void webkit_application_info_set_name (WebKitApplicationInfo *info
,const gchar *name
);
Set the name of the application. If not provided, or NULL
is passed,
g_get_prgname()
will be used.
Since: 2.18
const gchar *
webkit_application_info_get_name (WebKitApplicationInfo *info
);
Get the name of the application. If webkit_application_info_set_name()
hasn't been
called with a valid name, this returns g_get_prgname()
.
Since: 2.18
void webkit_application_info_set_version (WebKitApplicationInfo *info
,guint64 major
,guint64 minor
,guint64 micro
);
Set the application version. If the application doesn't use the format major.minor.micro you can pass 0 as the micro to use major.minor, or pass 0 as both micro and minor to use only major number. Any other format must be converted to major.minor.micro so that it can be used in version comparisons.
info |
||
major |
the major version number |
|
minor |
the minor version number |
|
micro |
the micro version number |
Since: 2.18
void webkit_application_info_get_version (WebKitApplicationInfo *info
,guint64 *major
,guint64 *minor
,guint64 *micro
);
Get the application version previously set with webkit_application_info_set_version()
.
info |
||
major |
return location for the major version number. |
[out] |
minor |
return location for the minor version number. |
[out][allow-none] |
micro |
return location for the micro version number. |
[out][allow-none] |
Since: 2.18