![]() |
![]() |
![]() |
Anjuta Developers Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <libanjuta/interfaces/ianjuta-stream-loader.h> #define IANJUTA_STREAM_LOADER_ERROR struct IAnjutaStreamLoaderIface; GQuark ianjuta_stream_loader_error_quark (void
); GObject * ianjuta_stream_loader_load (IAnjutaStreamLoader *obj
,FILE *stream
,gboolean readonly
,GError **err
); gchar * ianjuta_stream_loader_peek_interface (IAnjutaStreamLoader *obj
,FILE *stream
,GError **err
);
struct IAnjutaStreamLoaderIface { IAnjutaLoaderIface g_iface; GObject* (*load) (IAnjutaStreamLoader *obj, FILE *stream, gboolean readonly, GError **err); gchar* (*peek_interface) (IAnjutaStreamLoader *obj, FILE *stream, GError **err); };
GObject * ianjuta_stream_loader_load (IAnjutaStreamLoader *obj
,FILE *stream
,gboolean readonly
,GError **err
);
Determines a plugin which can open the given stream, activates it opening the stream and returns the interface of the plugin activated.
|
Self |
|
Stream to load |
|
Open in readonly mode. |
|
Error propagation and reporting |
Returns : |
Plugin interface used to load the stream. |
gchar * ianjuta_stream_loader_peek_interface (IAnjutaStreamLoader *obj
,FILE *stream
,GError **err
);
Peeks the stream and determines the interface which can load this stream.
|
Self |
|
Stream to load |
|
Error propagation and reporting |
Returns : |
Plugin interface name that can load the stream. |