| 1 |
#ifndef __HELLO_H__ |
| 2 |
#define __HELLO_H__ |
| 3 |
|
| 4 |
#ifdef __cplusplus |
| 5 |
extern "C" |
| 6 |
{ |
| 7 |
#endif |
| 8 |
|
| 9 |
typedef int Bool; |
| 10 |
|
| 11 |
Bool hello_print_message (const char *message); |
| 12 |
double hello_sum (double x, |
| 13 |
double y); |
| 14 |
|
| 15 |
typedef struct _HelloFoo HelloFoo; |
| 16 |
|
| 17 |
|
| 18 |
HelloFoo* hello_foo_new (void); |
| 19 |
HelloFoo* hello_foo_new_from_data (const char *data); |
| 20 |
HelloFoo* hello_foo_new_with_spaces (int num_spaces); |
| 21 |
void hello_foo_ref (HelloFoo *foo); |
| 22 |
void hello_foo_unref (HelloFoo *foo); |
| 23 |
void hello_foo_set_data (HelloFoo *foo, |
| 24 |
const char *data); |
| 25 |
const char * hello_foo_get_data (HelloFoo *foo); |
| 26 |
|
| 27 |
const HelloFoo* hello_foo_get_self (HelloFoo *foo); |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
int hello_get_hash (const HelloFoo *foo); |
| 32 |
|
| 33 |
|
| 34 |
#ifdef __cplusplus |
| 35 |
} |
| 36 |
#endif |
| 37 |
|
| 38 |
#endif |