Skip to content

Commit dc49df9

Browse files
committed
Remove public header file seap-error.h
Moves the remaining symbols from this public header to the private header _seap-error.h. The symbols will not be public anymore.
1 parent 4e2b87d commit dc49df9

File tree

5 files changed

+10
-62
lines changed

5 files changed

+10
-62
lines changed

src/OVAL/probes/SEAP/_seap-error.h

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,19 @@
2626

2727
#include "public/sexp.h"
2828
#include "_seap-message.h"
29-
#include "public/seap-error.h"
3029
#include "../../../common/util.h"
3130

32-
/*
3331
struct SEAP_err {
34-
SEAP_msgid_t id;
35-
uint32_t code;
36-
uint8_t type;
37-
SEXP_t *data;
32+
SEAP_msgid_t id;
33+
uint32_t code;
34+
uint8_t type;
35+
SEXP_t *data;
3836
};
39-
*/
37+
38+
typedef struct SEAP_err SEAP_err_t;
39+
40+
SEAP_err_t *SEAP_error_new(void);
41+
SEAP_err_t *SEAP_error_clone(SEAP_err_t *e);
42+
void SEAP_error_free(SEAP_err_t *e);
4043

4144
#endif /* _SEAP_ERROR_H */

src/OVAL/probes/SEAP/public/seap-error.h

Lines changed: 0 additions & 52 deletions
This file was deleted.

src/OVAL/probes/SEAP/public/seap.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ extern "C" {
3636
#include <errno.h>
3737
#include <sexp.h>
3838
#include <seap-types.h>
39-
#include <seap-error.h>
4039
#include "oscap_export.h"
4140
#include "sch_queue.h"
4241

src/OVAL/probes/SEAP/seap-descriptor.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
#include "_seap-packetq.h"
3535
#include "_sexp-output.h"
3636
#include "_seap-command.h"
37-
#include "public/seap-error.h"
3837
#include "../../../common/util.h"
3938

4039
typedef uint8_t SEAP_scheme_t;

src/OVAL/probes/SEAP/seap-packet.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
#include "_seap-packet.h"
3535
#include "_seap-types.h"
3636
#include "seap-descriptor.h"
37-
#include "public/seap-error.h"
3837
#include "sch_queue.h"
3938
#include "debug_priv.h"
4039

0 commit comments

Comments
 (0)