File: hello.h

package info (click to toggle)
pybindgen 0.20.0%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,932 kB
  • sloc: python: 15,981; cpp: 1,889; ansic: 617; makefile: 86; sh: 4
file content (38 lines) | stat: -rw-r--r-- 944 bytes parent folder | download | duplicates (8)
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
#ifndef __HELLO_H__
#define __HELLO_H__

#ifdef __cplusplus
extern "C"
{
#endif

typedef int Bool;

Bool   hello_print_message (const char *message);
double hello_sum           (double      x,
                            double      y);

typedef struct _HelloFoo HelloFoo;


HelloFoo*    hello_foo_new             (void);
HelloFoo*    hello_foo_new_from_data   (const char *data);
HelloFoo*    hello_foo_new_with_spaces (int         num_spaces);
void         hello_foo_ref             (HelloFoo   *foo);
void         hello_foo_unref           (HelloFoo   *foo);
void         hello_foo_set_data        (HelloFoo   *foo,
                                        const char *data);
const char * hello_foo_get_data        (HelloFoo   *foo);

const HelloFoo* hello_foo_get_self  (HelloFoo *foo);


/* -#- @foo(null_ok=true, default_value=NULL) -#- */
int hello_get_hash  (const HelloFoo *foo);


#ifdef __cplusplus
}
#endif

#endif /* __HELLO_H__ */