Method

GVncConnectionset_credential

Declaration [src]

gboolean
vnc_connection_set_credential (
  VncConnection* conn,
  int type,
  const gchar* data
)

Description [src]

Sets the value of the authentication credential type to the string data.

type is one of the VncConnectionCredential enum values.

Parameters

type int
 

The authentication credential type.

data const gchar*
 

The value associated with the credential.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.

Return value

Returns: gboolean
 

TRUE if the connection is ok, FALSE if it has an error.