GCC Code Coverage Report


Directory: src/
File: src/user/msg-user-service.h
Date: 2024-07-13 00:54:47
Exec Total Coverage
Lines: 1 1 100.0%
Functions: 1 1 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 /* Copyright 2023-2024 Jan-Michael Brummer
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU Lesser General Public License as published by
5 * the Free Software Foundation, either version 3 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17 #pragma once
18
19 #include <glib-object.h>
20
21 #include <msg-authorizer.h>
22 #include <msg-service.h>
23 #include <user/msg-user.h>
24
25 #define MSG_TYPE_USER_SERVICE (msg_user_service_get_type ())
26
27 2 G_DECLARE_FINAL_TYPE (MsgUserService, msg_user_service, MSG, USER_SERVICE, MsgService);
28
29 MsgUserService *msg_user_service_new (MsgAuthorizer *authorizer);
30
31 MsgUser *
32 msg_user_service_get_user (MsgUserService *self,
33 char *name,
34 GCancellable *cancellable,
35 GError **error);
36