File: bonobo-async.h

package info (click to toggle)
bonobo 1.0.22-2.2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 13,412 kB
  • ctags: 5,445
  • sloc: ansic: 51,714; sh: 7,733; makefile: 1,425; yacc: 318; xml: 266; sed: 16
file content (60 lines) | stat: -rw-r--r-- 1,567 bytes parent folder | download | duplicates (2)
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
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/**
 * bonobo-async.h: Code to make hand written
 * async CORBA wrappers easy to write.
 *
 * Author:
 *     Miguel de Icaza (miguel@gnu.org).
 *
 * Copyright 2000 Helix Code, Inc.
 */
#ifndef _BONOBO_ASYNC_H_
#define _BONOBO_ASYNC_H_

#include <glib.h>
#include <orb/orbit.h>
#include <libgnome/gnome-defs.h>

BEGIN_GNOME_DECLS

typedef enum {
	BONOBO_ASYNC_IN  = 0x1,
	BONOBO_ASYNC_OUT = 0x2
} BonoboAsyncArgFlag;

typedef struct {
	const CORBA_TypeCode  type;
	BonoboAsyncArgFlag    flag;
} BonoboAsyncArg;

typedef struct {
	const char           *name;
	const CORBA_TypeCode  ret_type;
	const BonoboAsyncArg *arguments;  /* NULL-terminated */
	const CORBA_TypeCode *exceptions; /* NULL-terminated */
} BonoboAsyncMethod;

typedef struct _BonoboAsyncReply BonoboAsyncReply;

typedef void (*BonoboAsyncCallback) (BonoboAsyncReply  *reply,
				     CORBA_Environment *ev,
				     gpointer           user_data);

void bonobo_async_demarshal (BonoboAsyncReply        *reply,
			     gpointer                 retval,
			     gpointer                *out_args);

void bonobo_async_invoke    (const BonoboAsyncMethod *method,
			     BonoboAsyncCallback      cb,
			     gpointer                 user_data,
			     guint                    timeout_msec,
			     CORBA_Object             object,
			     gpointer                *args,
			     CORBA_Environment       *ev);

GIOPRecvBuffer *bonobo_async_handle_get_recv (BonoboAsyncReply *reply);

END_GNOME_DECLS

#endif /* _BONOBO_ASYNC_H_ */