Constructor

GitlabClientnew

Declaration [src]

GitlabClient*
gitlab_client_new (
  const char* host,
  GitlabSecret* secret
)

Description [src]

Creates a new GitlabClient.

Parameters

host

Type: const char*

The hostname of the instance or NULL.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
secret

Type: GitlabSecret

The user secret or NULL.

The argument can be NULL.
The data is owned by the caller of the function.

Return value

Type: GitlabClient

A GitlabClient.

The caller of the function takes ownership of the data, and is responsible for freeing it.