bonobo-persist-stream

bonobo-persist-stream

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── BonoboObject
        ╰── BonoboPersist
            ╰── BonoboPersistStream

Description

Functions

BonoboPersistStreamIOFn ()

void
(*BonoboPersistStreamIOFn) (BonoboPersistStream *ps,
                            const Bonobo_Stream stream,
                            Bonobo_Persist_ContentType type,
                            void *closure,
                            CORBA_Environment *ev);

BonoboPersistStreamIOFn is deprecated and should not be used in newly-written code.


BonoboPersistStreamTypesFn ()

Bonobo_Persist_ContentTypeList *
(*BonoboPersistStreamTypesFn) (BonoboPersistStream *ps,
                               void *closure,
                               CORBA_Environment *ev);

BonoboPersistStreamTypesFn is deprecated and should not be used in newly-written code.


bonobo_persist_stream_new ()

BonoboPersistStream *
bonobo_persist_stream_new (BonoboPersistStreamIOFn load_fn,
                           BonoboPersistStreamIOFn save_fn,
                           BonoboPersistStreamTypesFn types_fn,
                           const gchar *iid,
                           void *closure);

bonobo_persist_stream_new is deprecated and should not be used in newly-written code.

Creates a new BonoboPersistStream object. The various operations for the object are performed by the provided callback functions, which are passed closure when they are invoked. If any callback is NULL, the corresponding operation is performed by the class load and save routines.

Parameters

load_fn

Loading routine

 

save_fn

Saving routine

 

types_fn

get_content_types routine

 

iid

OAF IID of the object this interface is aggregated to

 

closure

Data passed to IO routines.

 

Returns

the newly-created BonoboPersistStream object.


bonobo_persist_stream_construct ()

BonoboPersistStream *
bonobo_persist_stream_construct (BonoboPersistStream *ps,
                                 BonoboPersistStreamIOFn load_fn,
                                 BonoboPersistStreamIOFn save_fn,
                                 BonoboPersistStreamTypesFn types_fn,
                                 const gchar *iid,
                                 void *closure);

bonobo_persist_stream_construct is deprecated and should not be used in newly-written code.

Initializes the BonoboPersistStream object. The load and save operations for the object are performed by the provided load_fn and save_fn callback functions, which are passed closure when they are invoked. If either load_fn or save_fn is NULL, the corresponding operation is performed by the class load and save routines.

Parameters

ps

A BonoboPersistStream object

 

load_fn

Loading routine

 

save_fn

Saving routine

 

types_fn

returns the supported types

 

iid

OAF IID of the object this interface is aggregated to

 

closure

Data passed to IO routines.

 

Returns

The initialized BonoboPersistStream object.

Types and Values

struct BonoboPersistStream

struct BonoboPersistStream;

BonoboPersistStream is deprecated and should not be used in newly-written code.


BonoboPersistStreamClass

typedef struct {
	BonoboPersistClass parent_class;

	POA_Bonobo_PersistStream__epv epv;

	/* methods */
	void       (*load)         (BonoboPersistStream        *ps,
				    Bonobo_Stream              stream,
				    Bonobo_Persist_ContentType type,
				    CORBA_Environment          *ev);
	void       (*save)         (BonoboPersistStream        *ps,
				    Bonobo_Stream              stream,
				    Bonobo_Persist_ContentType type,
				    CORBA_Environment          *ev);

	Bonobo_Persist_ContentTypeList * (*get_content_types) (BonoboPersistStream *ps,
							       CORBA_Environment   *ev);
} BonoboPersistStreamClass;

BonoboPersistStreamClass is deprecated and should not be used in newly-written code.