Skip to content

Commit

Permalink
jcr: separate file for ProtocolTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
franku committed Nov 7, 2019
1 parent 70a2d5d commit 5ff0773
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 10 deletions.
1 change: 1 addition & 0 deletions core/src/dird/backup.cc
Expand Up @@ -48,6 +48,7 @@
#include "dird/sd_cmds.h"
#include "ndmp/smc.h"
#include "dird/storage.h"
#include "include/protocol_types.h"

#include "cats/sql.h"
#include "lib/bnet.h"
Expand Down
1 change: 1 addition & 0 deletions core/src/dird/dird_conf.cc
Expand Up @@ -52,6 +52,7 @@
#include "dird/inc_conf.h"
#include "dird/dird_globals.h"
#include "dird/jcr_private.h"
#include "include/protocol_types.h"
#include "lib/berrno.h"
#include "lib/breg.h"
#include "lib/tls_conf.h"
Expand Down
1 change: 1 addition & 0 deletions core/src/dird/job.cc
Expand Up @@ -70,6 +70,7 @@
#include "lib/util.h"
#include "lib/watchdog.h"
#include "include/make_unique.h"
#include "include/protocol_types.h"

namespace directordaemon {

Expand Down
1 change: 1 addition & 0 deletions core/src/dird/ndmp_fhdb_helpers.cc
Expand Up @@ -29,6 +29,7 @@

#include "include/bareos.h"
#include "dird.h"
#include "include/protocol_types.h"

#if HAVE_NDMP

Expand Down
1 change: 1 addition & 0 deletions core/src/dird/restore.cc
Expand Up @@ -52,6 +52,7 @@
#include "dird/restore.h"
#include "dird/sd_cmds.h"
#include "dird/storage.h"
#include "include/protocol_types.h"
#include "lib/edit.h"
#include "lib/util.h"

Expand Down
1 change: 1 addition & 0 deletions core/src/dird/ua_restore.cc
Expand Up @@ -49,6 +49,7 @@
#include "lib/parse_conf.h"
#include "lib/tree.h"
#include "include/make_unique.h"
#include "include/protocol_types.h"

namespace directordaemon {

Expand Down
10 changes: 0 additions & 10 deletions core/src/include/jcr.h
Expand Up @@ -51,16 +51,6 @@ typedef struct s_tree_root TREE_ROOT;

class dlist;

/**
* Protocol types
*/
enum
{
PT_NATIVE = 0,
PT_NDMP_BAREOS, /* alias for PT_NDMP */
PT_NDMP_NATIVE
};

/**
* Authentication Protocol types
*/
Expand Down
34 changes: 34 additions & 0 deletions core/src/include/protocol_types.h
@@ -0,0 +1,34 @@
/*
BAREOS® - Backup Archiving REcovery Open Sourced
Copyright (C) 2000-2012 Free Software Foundation Europe e.V.
Copyright (C) 2011-2012 Planets Communications B.V.
Copyright (C) 2013-2019 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU Affero General Public
License as published by the Free Software Foundation and included
in the file LICENSE.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/

#ifndef BAREOS_SRC_INCLUDE_PROTOCOL_TYPES_H_
#define BAREOS_SRC_INCLUDE_PROTOCOL_TYPES_H_

enum ProtocolTypes
{
PT_NATIVE = 0,
PT_NDMP_BAREOS, /* alias for PT_NDMP */
PT_NDMP_NATIVE
};

#endif // BAREOS_SRC_INCLUDE_PROTOCOL_TYPES_H_
1 change: 1 addition & 0 deletions core/src/stored/dir_cmd.cc
Expand Up @@ -61,6 +61,7 @@
#include "stored/job.h"
#include "stored/mac.h"
#include "include/make_unique.h"
#include "include/protocol_types.h"
#include "lib/berrno.h"
#include "lib/bnet.h"
#include "lib/bsock.h"
Expand Down
1 change: 1 addition & 0 deletions core/src/stored/job.cc
Expand Up @@ -42,6 +42,7 @@
#include "lib/parse_bsr.h"
#include "lib/util.h"
#include "include/jcr.h"
#include "include/protocol_types.h"

namespace storagedaemon {

Expand Down

0 comments on commit 5ff0773

Please sign in to comment.