File: bonobo-object-io.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 (34 lines) | stat: -rw-r--r-- 965 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
/**
 * gnome-object-io.c: Helper routines for loading and saving of objects
 *
 * Author:
 *   Miguel de Icaza (miguel@kernel.org)
 *
 * Copyright 1999, Helix Code, Inc.
 */
#ifndef _BONOBO_OBJECT_IO_H_
#define _BONOBO_OBJECT_IO_H_

typedef enum {
	GNOME_IO_OK,
	
	/* Generic error */
	GNOME_IOERR_GENERAL,

	/* PersistStorage interface not supported by object */
	GNOME_IOERR_PERSIST_NOT_SUPPORTED
	
} GnomeIOStatus;

void            bonobo_persist_stream_save_object_iid  (Bonobo_Stream target,
							const CORBA_char *object_iid,
							CORBA_Environment *ev);
char           *bonobo_persist_stream_load_object_iid  (Bonobo_Stream source);
GnomeIOStatus   bonobo_persiststream_save_to_stream    (Bonobo_PersistStream pstream,
							Bonobo_Stream target,
							const char *object_iid);
GnomeIOStatus   bonobo_object_save_to_stream           (BonoboObject *object,
							Bonobo_Stream stream,
							const char *object_iid);

#endif /* _BONOBO_OBJECT_IO_H_ */