1 /*
2    BAREOS® - Backup Archiving REcovery Open Sourced
3 
4    Copyright (C) 2018-2018 Bareos GmbH & Co. KG
5 
6    This program is Free Software; you can redistribute it and/or
7    modify it under the terms of version three of the GNU Affero General Public
8    License as published by the Free Software Foundation and included
9    in the file LICENSE.
10 
11    This program is distributed in the hope that it will be useful, but
12    WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14    Affero General Public License for more details.
15 
16    You should have received a copy of the GNU Affero General Public License
17    along with this program; if not, write to the Free Software
18    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19    02110-1301, USA.
20 */
21 
22 #ifndef BAREOS_DIRD_UA_CMDS_H_
23 #define BAREOS_DIRD_UA_CMDS_H_
24 
25 namespace directordaemon {
26 
27 class ClientResource;
28 class UaContext;
29 
30 bool Do_a_command(UaContext* ua);
31 bool DotMessagesCmd(UaContext* ua, const char* cmd);
32 
33 void SetDoClientSetdebugFunction(std::function<void(UaContext* ua,
34                                                     ClientResource* client,
35                                                     int level,
36                                                     int trace_flag,
37                                                     int hangup_flag,
38                                                     int timestamp_flag)> f);
39 
40 void SetDoStorageSetdebugFunction(std::function<void(UaContext* ua,
41                                                      StorageResource* store,
42                                                      int level,
43                                                      int trace_flag,
44                                                      int timestamp_flag)> f);
45 
46 void DoAllSetDebug(UaContext* ua,
47                    int level,
48                    int trace_flag,
49                    int hangup_flag,
50                    int timestamp_flag);
51 } /* namespace directordaemon */
52 #endif  // BAREOS_DIRD_UA_CMDS_H_
53