C++-friendly headers
This commit is contained in:
parent
75d2efbe4c
commit
d0ccaff719
@ -5,6 +5,10 @@
|
|||||||
|
|
||||||
#include"ebml.h"
|
#include"ebml.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include<stddef.h>
|
#include<stddef.h>
|
||||||
#include<stdint.h>
|
#include<stdint.h>
|
||||||
|
|
||||||
@ -42,7 +46,11 @@ typedef struct EBMLReader {
|
|||||||
void *ud;
|
void *ud;
|
||||||
} EBMLReader;
|
} EBMLReader;
|
||||||
|
|
||||||
void ebml_reader_init(EBMLReader *this);
|
void ebml_reader_init(EBMLReader*);
|
||||||
int ebml_reader_feed(EBMLReader *this, const uint8_t *data, size_t length);
|
int ebml_reader_feed(EBMLReader*, const uint8_t *data, size_t length);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,6 +6,10 @@
|
|||||||
#include<stddef.h>
|
#include<stddef.h>
|
||||||
#include<stdbool.h>
|
#include<stdbool.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#define EBML_WRITE_MAXIMUM_DEPTH 128
|
#define EBML_WRITE_MAXIMUM_DEPTH 128
|
||||||
|
|
||||||
struct EBMLWriter;
|
struct EBMLWriter;
|
||||||
@ -27,15 +31,19 @@ typedef struct EBMLWriter {
|
|||||||
void *ud;
|
void *ud;
|
||||||
} EBMLWriter;
|
} EBMLWriter;
|
||||||
|
|
||||||
void ebml_writer_init(EBMLWriter *this);
|
void ebml_writer_init(EBMLWriter*);
|
||||||
void ebml_writer_free(EBMLWriter *this);
|
void ebml_writer_free(EBMLWriter*);
|
||||||
|
|
||||||
void ebml_writer_push_ind(EBMLWriter *this, uint64_t id);
|
void ebml_writer_push_ind(EBMLWriter*, uint64_t id);
|
||||||
void ebml_writer_push(EBMLWriter *this, uint64_t id);
|
void ebml_writer_push(EBMLWriter*, uint64_t id);
|
||||||
void ebml_writer_pop(EBMLWriter *this);
|
void ebml_writer_pop(EBMLWriter*);
|
||||||
|
|
||||||
bool ebml_writer_flush(EBMLWriter *this);
|
bool ebml_writer_flush(EBMLWriter*);
|
||||||
|
|
||||||
void ebml_writer_put(EBMLWriter *this, uint64_t id, EBMLElementType type, EBMLPrimitive primitive);
|
void ebml_writer_put(EBMLWriter*, uint64_t id, EBMLElementType type, EBMLPrimitive primitive);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user