-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use standard layout for referenced golang packages in tests
- Loading branch information
Showing
10 changed files
with
1,169 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#ifndef BROTLI_BROCCOLI_H | ||
#define BROTLI_BROCCOLI_H | ||
#include <stdint.h> | ||
typedef struct BroccoliState_ { | ||
void *unused; | ||
unsigned char data[248]; | ||
} BroccoliState; | ||
|
||
typedef enum BroccoliResult_ { | ||
BroccoliSuccess = 0, | ||
BroccoliNeedsMoreInput = 1, | ||
BroccoliNeedsMoreOutput = 2, | ||
BroccoliBrotliFileNotCraftedForAppend = 124, | ||
BroccoliInvalidWindowSize = 125, | ||
BroccoliWindowSizeLargerThanPreviousFile = 126, | ||
BroccoliBrotliFileNotCraftedForConcatenation = 127, | ||
} BroccoliResult; | ||
|
||
|
||
BroccoliState BroccoliCreateInstance(); | ||
|
||
BroccoliState BroccoliCreateInstanceWithWindowSize(uint8_t window_size); | ||
|
||
void BroccoliDestroyInstance(BroccoliState state); | ||
|
||
void BroccoliNewBrotliFile(BroccoliState *state); | ||
|
||
BroccoliResult BroccoliConcatStream( | ||
BroccoliState *state, | ||
size_t *available_in, | ||
const uint8_t **input_buf_ptr, | ||
size_t *available_out, | ||
uint8_t **output_buf_ptr); | ||
|
||
BroccoliResult BroccoliConcatFinish(BroccoliState * state, | ||
size_t *available_out, | ||
uint8_t**output_buf); | ||
#endif |
Oops, something went wrong.