Function

Notifyget_server_info

Declaration [src]

gboolean
notify_get_server_info (
  char** ret_name,
  char** ret_vendor,
  char** ret_version,
  char** ret_spec_version
)

Description [src]

Queries the server for information.

Synchronously queries the server for its information, specifically, the name, vendor, server version, and the version of the notifications specification that it is compliant with.

Parameters

ret_name char**
 

A location to store the server name, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
 The called function takes ownership of the data, and is responsible for freeing it.
 The string is a NUL terminated UTF-8 string.
ret_vendor char**
 

A location to store the server vendor, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
 The called function takes ownership of the data, and is responsible for freeing it.
 The string is a NUL terminated UTF-8 string.
ret_version char**
 

A location to store the server version, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
 The called function takes ownership of the data, and is responsible for freeing it.
 The string is a NUL terminated UTF-8 string.
ret_spec_version char**
 

A location to store the version the service is compliant with, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
 The called function takes ownership of the data, and is responsible for freeing it.
 The string is a NUL terminated UTF-8 string.

Return value

Returns: gboolean
 

TRUE if successful, and the variables passed will be set, FALSE on error. The returned strings must be freed with g_free.