20#if (defined(__clang__) || (_GNUC__ >= 4))
21#define SAQ_BARTLEBY_API __attribute__((visibility("default")))
23#define SAQ_BARTLEBY_API
68 const void *s,
const size_t n);
SAQ_BARTLEBY_API void saq_bartleby_free(struct BartlebyHandle *bh)
Frees a Bartleby handle.
Definition: Bartleby-c.cpp:51
#define SAQ_BARTLEBY_API
Definition: Bartleby.h:23
SAQ_BARTLEBY_API struct BartlebyHandle * saq_bartleby_new(void)
Allocates a new Bartleby handle.
Definition: Bartleby-c.cpp:47
SAQ_BARTLEBY_API int saq_bartleby_build_archive(struct BartlebyHandle *bh, void **s, size_t *n)
Builds the final archive and writes its content to a buffer.
Definition: Bartleby-c.cpp:98
SAQ_BARTLEBY_API int saq_bartleby_set_prefix(struct BartlebyHandle *bh, const char *prefix)
Applies a prefix to all global and defined symbols.
Definition: Bartleby-c.cpp:55
SAQ_BARTLEBY_API int saq_bartleby_add_binary(struct BartlebyHandle *bh, const void *s, const size_t n)
Adds a new binary to Bartleby.
Definition: Bartleby-c.cpp:69
Definition of the Bartleby handle.
Definition: Bartleby-c.cpp:40