Skip to content
This repository was archived by the owner on Oct 6, 2023. It is now read-only.

Commit a38a0bb

Browse files
committed
fix(clib): clib headers synchronized
1 parent 199f6e0 commit a38a0bb

File tree

17 files changed

+128
-74
lines changed

17 files changed

+128
-74
lines changed

neb/inc/com/centreon/exceptions/basic.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class basic : public std::exception {
5050

5151
misc::stringifier _buffer;
5252
};
53-
}
53+
} // namespace exceptions
5454

5555
CC_END()
5656

neb/inc/com/centreon/exceptions/interruption.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class interruption : public basic {
4747
return (*this);
4848
}
4949
};
50-
}
50+
} // namespace exceptions
5151

5252
CC_END()
5353

neb/inc/com/centreon/io/directory_entry.hh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
#include <list>
2323
#include <string>
24-
#include "com/centreon/io/file_entry.hh"
2524
#include "com/centreon/handle.hh"
25+
#include "com/centreon/io/file_entry.hh"
2626
#include "com/centreon/namespace.hh"
2727

2828
CC_BEGIN()
@@ -55,7 +55,7 @@ class directory_entry {
5555
file_entry _entry;
5656
std::list<file_entry> _entry_lst;
5757
};
58-
}
58+
} // namespace io
5959

6060
CC_END()
6161

neb/inc/com/centreon/io/file_entry.hh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
#ifndef CC_IO_FILE_ENTRY_HH
2020
#define CC_IO_FILE_ENTRY_HH
2121

22-
#include <string>
23-
#include <sys/types.h>
2422
#include <sys/stat.h>
23+
#include <sys/types.h>
24+
#include <string>
2525
#include "com/centreon/handle.hh"
2626
#include "com/centreon/namespace.hh"
2727

@@ -65,7 +65,7 @@ class file_entry {
6565
std::string _path;
6666
struct stat _sbuf;
6767
};
68-
}
68+
} // namespace io
6969

7070
CC_END()
7171

neb/inc/com/centreon/io/file_stream.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class file_stream : public handle {
6363
bool _auto_close;
6464
FILE* _stream;
6565
};
66-
}
66+
} // namespace io
6767

6868
CC_END()
6969

neb/inc/com/centreon/logging/backend.hh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,7 @@ class stringifier;
2929
}
3030

3131
namespace logging {
32-
enum time_precision {
33-
none = 0,
34-
microsecond = 1,
35-
millisecond = 2,
36-
second = 3
37-
};
32+
enum time_precision { none = 0, microsecond = 1, millisecond = 2, second = 3 };
3833

3934
/**
4035
* @class backend backend.hh "com/centreon/logging/backend.hh"
@@ -81,7 +76,7 @@ class backend {
8176
protected:
8277
void _internal_copy(backend const& right);
8378
};
84-
}
79+
} // namespace logging
8580

8681
CC_END()
8782

neb/inc/com/centreon/logging/engine.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class engine {
8989
unsigned long long _list_types[sizeof(unsigned int) * CHAR_BIT];
9090
mutable std::mutex _mtx;
9191
};
92-
}
92+
} // namespace logging
9393

9494
CC_END()
9595

neb/inc/com/centreon/logging/file.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class file : public backend {
6868
FILE* _out;
6969
uint64_t _size;
7070
};
71-
}
71+
} // namespace logging
7272

7373
CC_END()
7474

neb/inc/com/centreon/logging/logger.hh

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,16 @@ enum type_value {
3030
type_error = (1ull << 63)
3131
};
3232

33-
enum verbosity_level {
34-
low = 0,
35-
medium = 1,
36-
high = 2
37-
};
38-
}
33+
enum verbosity_level { low = 0, medium = 1, high = 2 };
34+
} // namespace logging
3935

4036
CC_END()
4137

4238
#define log_info(verbose) \
4339
for (unsigned int __com_centreon_logging_define_ui(0); \
4440
!__com_centreon_logging_define_ui && \
45-
com::centreon::logging::engine::instance().is_log( \
46-
com::centreon::logging::type_info, verbose); \
41+
com::centreon::logging::engine::instance().is_log( \
42+
com::centreon::logging::type_info, verbose); \
4743
++__com_centreon_logging_define_ui) \
4844
com::centreon::logging::temp_logger(com::centreon::logging::type_info, \
4945
verbose) \
@@ -52,8 +48,8 @@ CC_END()
5248
#define log_debug(verbose) \
5349
for (unsigned int __com_centreon_logging_define_ui(0); \
5450
!__com_centreon_logging_define_ui && \
55-
com::centreon::logging::engine::instance().is_log( \
56-
com::centreon::logging::type_debug, verbose); \
51+
com::centreon::logging::engine::instance().is_log( \
52+
com::centreon::logging::type_debug, verbose); \
5753
++__com_centreon_logging_define_ui) \
5854
com::centreon::logging::temp_logger(com::centreon::logging::type_debug, \
5955
verbose) \
@@ -62,8 +58,8 @@ CC_END()
6258
#define log_error(verbose) \
6359
for (unsigned int __com_centreon_logging_define_ui(0); \
6460
!__com_centreon_logging_define_ui && \
65-
com::centreon::logging::engine::instance().is_log( \
66-
com::centreon::logging::type_error, verbose); \
61+
com::centreon::logging::engine::instance().is_log( \
62+
com::centreon::logging::type_error, verbose); \
6763
++__com_centreon_logging_define_ui) \
6864
com::centreon::logging::temp_logger(com::centreon::logging::type_error, \
6965
verbose) \

neb/inc/com/centreon/logging/syslogger.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class syslogger : public backend {
5454
int _facility;
5555
std::string _id;
5656
};
57-
}
57+
} // namespace logging
5858

5959
CC_END()
6060

0 commit comments

Comments
 (0)