File: test.yada.h

package info (click to toggle)
libyada 1.0.2-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,692 kB
  • ctags: 1,463
  • sloc: sh: 11,256; ansic: 8,100; makefile: 551; yacc: 315
file content (75 lines) | stat: -rw-r--r-- 2,315 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75

/******************************************************************************
 ******************************************************************************/

/** \file test.yada.h
 *  automatically generated from: test.yada
 */

#ifndef __YADAC_TEST_H__
#define __YADAC_TEST_H__

/******************************************************************************
 * I N C L U D E S ************************************************************
 ******************************************************************************/

#include <yada.h>

#include "testruct.h"

/******************************************************************************
 * T Y P E D E F S ************************************************************
 ******************************************************************************/

#ifndef __YADAC_T_
#define __YADAC_T_

typedef struct
{
  yada_t *db;
  int sz;
  int rcs;
  yada_rc_t **rc;
} yadac_t;

#endif

/******************************************************************************
 * P R O T O T Y P E S ********************************************************
 ******************************************************************************/

/* init / destroy test functions */
yadac_t* test_init(yadac_t *db, ...);
void test_free(yadac_t *yc);

void test_destroy(yadac_t *yc);

/* compiled queries */
int test_create_table(yadac_t *yc, char *in1);

int test_drop_table(yadac_t *yc);

int test_addrow(yadac_t *yc, char *in1, int in2, char *in3);

int test_addrowstruct(yadac_t *yc, testruct_t *in);

int test_getid(yadac_t *yc, int errval, char *in1);

char* test_getstr(yadac_t *yc, char *errval, int in1);

int test_findrow(yadac_t *yc, int in1, int in2, int *out1, char *out2, int *out3, int **out4, char **out5);

int test_findstruct(yadac_t *yc, int in1, int in2, testruct_t *out);

int test_findmatch(yadac_t *yc, int in1, int *out1, char **out2);
int test_findmatch_fetch(yadac_t *yc);
int test_matchstruct(yadac_t *yc, int in1, testruct_t *out);

int test_matchstruct_fetch(yadac_t *yc);
/******************************************************************************/

#endif /* end __YADAC_TEST_H__ */

/******************************************************************************
 ******************************************************************************/