|
| 1 | +/* Code generated by cmd/cgo; DO NOT EDIT. */ |
| 2 | + |
| 3 | +/* package command-line-arguments */ |
| 4 | + |
| 5 | + |
| 6 | +#line 1 "cgo-builtin-export-prolog" |
| 7 | + |
| 8 | +#include <stddef.h> |
| 9 | + |
| 10 | +#ifndef GO_CGO_EXPORT_PROLOGUE_H |
| 11 | +#define GO_CGO_EXPORT_PROLOGUE_H |
| 12 | + |
| 13 | +#ifndef GO_CGO_GOSTRING_TYPEDEF |
| 14 | +typedef struct { const char *p; ptrdiff_t n; } _GoString_; |
| 15 | +#endif |
| 16 | + |
| 17 | +#endif |
| 18 | + |
| 19 | +/* Start of preamble from import "C" comments. */ |
| 20 | + |
| 21 | + |
| 22 | +#line 3 "publiccode-parser-wrapper.go" |
| 23 | + |
| 24 | +#include <stdint.h> |
| 25 | +#include <stdlib.h> |
| 26 | +#include <stdbool.h> |
| 27 | + |
| 28 | +struct ParserConfig { |
| 29 | + bool DisableNetwork; |
| 30 | + char *Branch; |
| 31 | + char *BaseURL; |
| 32 | +}; |
| 33 | + |
| 34 | +struct ParseResult { |
| 35 | + char *Data; |
| 36 | + char *Error; |
| 37 | + int ErrorCount; |
| 38 | + char **Errors; |
| 39 | + int WarningCount; |
| 40 | + char **Warnings; |
| 41 | +}; |
| 42 | + |
| 43 | +typedef uintptr_t ParserHandle; |
| 44 | + |
| 45 | +#line 1 "cgo-generated-wrapper" |
| 46 | + |
| 47 | + |
| 48 | +/* End of preamble from import "C" comments. */ |
| 49 | + |
| 50 | + |
| 51 | +/* Start of boilerplate cgo prologue. */ |
| 52 | +#line 1 "cgo-gcc-export-header-prolog" |
| 53 | + |
| 54 | +#ifndef GO_CGO_PROLOGUE_H |
| 55 | +#define GO_CGO_PROLOGUE_H |
| 56 | + |
| 57 | +typedef signed char GoInt8; |
| 58 | +typedef unsigned char GoUint8; |
| 59 | +typedef short GoInt16; |
| 60 | +typedef unsigned short GoUint16; |
| 61 | +typedef int GoInt32; |
| 62 | +typedef unsigned int GoUint32; |
| 63 | +typedef long long GoInt64; |
| 64 | +typedef unsigned long long GoUint64; |
| 65 | +typedef GoInt64 GoInt; |
| 66 | +typedef GoUint64 GoUint; |
| 67 | +typedef size_t GoUintptr; |
| 68 | +typedef float GoFloat32; |
| 69 | +typedef double GoFloat64; |
| 70 | +#ifdef _MSC_VER |
| 71 | +#include <complex.h> |
| 72 | +typedef _Fcomplex GoComplex64; |
| 73 | +typedef _Dcomplex GoComplex128; |
| 74 | +#else |
| 75 | +typedef float _Complex GoComplex64; |
| 76 | +typedef double _Complex GoComplex128; |
| 77 | +#endif |
| 78 | + |
| 79 | +/* |
| 80 | + static assertion to make sure the file is being used on architecture |
| 81 | + at least with matching size of GoInt. |
| 82 | +*/ |
| 83 | +typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1]; |
| 84 | + |
| 85 | +#ifndef GO_CGO_GOSTRING_TYPEDEF |
| 86 | +typedef _GoString_ GoString; |
| 87 | +#endif |
| 88 | +typedef void *GoMap; |
| 89 | +typedef void *GoChan; |
| 90 | +typedef struct { void *t; void *v; } GoInterface; |
| 91 | +typedef struct { void *data; GoInt len; GoInt cap; } GoSlice; |
| 92 | + |
| 93 | +#endif |
| 94 | + |
| 95 | +/* End of boilerplate cgo prologue. */ |
| 96 | + |
| 97 | +#ifdef __cplusplus |
| 98 | +extern "C" { |
| 99 | +#endif |
| 100 | + |
| 101 | +extern ParserHandle NewParser(_Bool disableNetwork, char* branch, char* baseURL); |
| 102 | +extern struct ParseResult* ParseString(ParserHandle handle, char* content); |
| 103 | +extern void FreeResult(struct ParseResult* result); |
| 104 | + |
| 105 | +#ifdef __cplusplus |
| 106 | +} |
| 107 | +#endif |
0 commit comments