3.1 <WebKitApplicationInfo>

Structure: <WebKitApplicationInfo>

Information about an application running in automation mode.

Procedures

Method: application-info:get-name self ⇒ %return
Method: get-name self ⇒ %return

Get the name of the application.

If application-info:set-name hasn’t been called with a valid name, this returns get-prgname.

self

Passed: a <WebKitApplicationInfo>.

a <WebKitApplicationInfo>

%return

Returned: a string.

the application name

Method: application-info:get-version self ⇒ major minor micro
Method: get-version self ⇒ major minor micro

Get the application version previously set with application-info:set-version.

self

Passed: a <WebKitApplicationInfo>.

a <WebKitApplicationInfo>

major

Returned: an unsigned 64-bit integer.

return location for the major version number

minor

Returned: an unsigned 64-bit integer.

return location for the minor version number

micro

Returned: an unsigned 64-bit integer.

return location for the micro version number

Procedure: application-info:new ⇒ %return

Creates a new <WebKitApplicationInfo>

%return

Returned: a <WebKitApplicationInfo>.

the newly created <WebKitApplicationInfo>.

Method: application-info:ref self ⇒ %return
Method: ref self ⇒ %return

Atomically increments the reference count of self by one.

This function is MT-safe and may be called from any thread.

self

Passed: a <WebKitApplicationInfo>.

a <WebKitApplicationInfo>

%return

Returned: a <WebKitApplicationInfo>.

The passed in <WebKitApplicationInfo>

Method: application-info:set-name self name
Method: set-name self name

Set the name of the application.

If not provided, or #f is passed, get-prgname will be used.

self

Passed: a <WebKitApplicationInfo>.

a <WebKitApplicationInfo>

name

Passed: a string.

the application name

Method: application-info:set-version self major minor micro
Method: set-version self major minor 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.

self

Passed: a <WebKitApplicationInfo>.

a <WebKitApplicationInfo>

major

Passed: an unsigned 64-bit integer.

the major version number

minor

Passed: an unsigned 64-bit integer.

the minor version number

micro

Passed: an unsigned 64-bit integer.

the micro version number

Method: application-info:unref self
Method: unref self

Atomically decrements the reference count of self 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.

self

Passed: a <WebKitApplicationInfo>.

a <WebKitApplicationInfo>