tests: Use `--no-wait` when destroying sessions in relayd-grouping
[lttng-tools.git] / src / common / credentials.hpp
CommitLineData
18710679 1/*
ab5be9fa 2 * Copyright (C) 2019 Jérémie Galarneau <jeremie.galarneau@efficios.com>
18710679 3 *
c922647d 4 * SPDX-License-Identifier: LGPL-2.1-only
18710679 5 *
18710679
JG
6 */
7
8#ifndef LTTNG_CREDENTIALS_H
9#define LTTNG_CREDENTIALS_H
10
c9e313bc 11#include "macros.hpp"
c9e313bc 12#include "optional.hpp"
ff588497 13
28f23191
JG
14#include <stdbool.h>
15#include <sys/types.h>
16
18710679 17struct lttng_credentials {
ff588497
JR
18 LTTNG_OPTIONAL(uid_t) uid;
19 LTTNG_OPTIONAL(gid_t) gid;
18710679
JG
20};
21
ff588497 22uid_t lttng_credentials_get_uid(const struct lttng_credentials *creds);
84e46494 23
ff588497
JR
24gid_t lttng_credentials_get_gid(const struct lttng_credentials *creds);
25
26bool lttng_credentials_is_equal_uid(const struct lttng_credentials *a,
28f23191 27 const struct lttng_credentials *b);
ff588497
JR
28
29bool lttng_credentials_is_equal_gid(const struct lttng_credentials *a,
28f23191 30 const struct lttng_credentials *b);
ff588497 31
894e6e1c 32bool lttng_credentials_is_equal(const struct lttng_credentials *a,
28f23191 33 const struct lttng_credentials *b);
894e6e1c 34
18710679 35#endif /* LTTNG_CREDENTIALS_H */
This page took 0.05894 seconds and 4 git commands to generate.