mirror of
https://github.com/pkgconf/pkgconf.git
synced 2026-01-26 16:09:27 +00:00
libpkgconf: client: add pkgconf_client_set_output
Signed-off-by: Ariadne Conill <ariadne@ariadne.space>
This commit is contained in:
parent
38151d1726
commit
5951b644bb
@ -843,3 +843,21 @@ pkgconf_client_preload_from_environ(pkgconf_client_t *client, const char *env)
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*
|
||||
* !doc
|
||||
*
|
||||
* .. c:function:: void pkgconf_client_set_output(pkgconf_client_t *client, pkgconf_output_t *output)
|
||||
*
|
||||
* Sets the client's output object. This is mainly a convenience function for clients
|
||||
* to use.
|
||||
*
|
||||
* :param pkgconf_client_t* client: The client object to set the output object for.
|
||||
* :param pkgconf_output_t* output: The output object to use.
|
||||
* :return: nothing
|
||||
*/
|
||||
void
|
||||
pkgconf_client_set_output(pkgconf_client_t *client, pkgconf_output_t *output)
|
||||
{
|
||||
client->output = output;
|
||||
}
|
||||
|
||||
@ -225,6 +225,8 @@ struct pkgconf_client_ {
|
||||
pkgconf_unveil_handler_func_t unveil_handler;
|
||||
|
||||
pkgconf_list_t preloaded_pkgs;
|
||||
|
||||
pkgconf_output_t *output;
|
||||
};
|
||||
|
||||
struct pkgconf_cross_personality_ {
|
||||
@ -266,6 +268,7 @@ PKGCONF_API void pkgconf_client_dir_list_build(pkgconf_client_t *client, const p
|
||||
PKGCONF_API bool pkgconf_client_preload_one(pkgconf_client_t *client, pkgconf_pkg_t *pkg);
|
||||
PKGCONF_API bool pkgconf_client_preload_path(pkgconf_client_t *client, const char *path);
|
||||
PKGCONF_API bool pkgconf_client_preload_from_environ(pkgconf_client_t *client, const char *env);
|
||||
PKGCONF_API void pkgconf_client_set_output(pkgconf_client_t *client, pkgconf_output_t *output);
|
||||
|
||||
/* personality.c */
|
||||
PKGCONF_API pkgconf_cross_personality_t *pkgconf_cross_personality_default(void);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user