github.com/code-to-go/safepool.lib@v0.0.0-20221205180519-ee25e63c226e/weshare.h (about)

     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> /* for ptrdiff_t below */
     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 "exports.go"
    23  
    24  typedef struct Result{
    25  	char* err;
    26      char* data;
    27  } Result;
    28  #include <stdlib.h>
    29  
    30  #line 1 "cgo-generated-wrapper"
    31  
    32  
    33  /* End of preamble from import "C" comments.  */
    34  
    35  
    36  /* Start of boilerplate cgo prologue.  */
    37  #line 1 "cgo-gcc-export-header-prolog"
    38  
    39  #ifndef GO_CGO_PROLOGUE_H
    40  #define GO_CGO_PROLOGUE_H
    41  
    42  typedef signed char GoInt8;
    43  typedef unsigned char GoUint8;
    44  typedef short GoInt16;
    45  typedef unsigned short GoUint16;
    46  typedef int GoInt32;
    47  typedef unsigned int GoUint32;
    48  typedef long long GoInt64;
    49  typedef unsigned long long GoUint64;
    50  typedef GoInt64 GoInt;
    51  typedef GoUint64 GoUint;
    52  typedef __SIZE_TYPE__ GoUintptr;
    53  typedef float GoFloat32;
    54  typedef double GoFloat64;
    55  typedef float _Complex GoComplex64;
    56  typedef double _Complex GoComplex128;
    57  
    58  /*
    59    static assertion to make sure the file is being used on architecture
    60    at least with matching size of GoInt.
    61  */
    62  typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
    63  
    64  #ifndef GO_CGO_GOSTRING_TYPEDEF
    65  typedef _GoString_ GoString;
    66  #endif
    67  typedef void *GoMap;
    68  typedef void *GoChan;
    69  typedef struct { void *t; void *v; } GoInterface;
    70  typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
    71  
    72  #endif
    73  
    74  /* End of boilerplate cgo prologue.  */
    75  
    76  #ifdef __cplusplus
    77  extern "C" {
    78  #endif
    79  
    80  extern Result Start();
    81  extern Result stop();
    82  extern char* setDomain(char* domainDef);
    83  
    84  #ifdef __cplusplus
    85  }
    86  #endif