![]() |
![]() |
![]() |
Anjuta Developers Reference Manual | ![]() |
---|---|---|---|---|
#include <libanjuta/interfaces/ianjuta-stream-loader.h> #define IANJUTA_STREAM_LOADER_ERROR IAnjutaStreamLoader; 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);
typedef struct { IAnjutaLoaderIface g_iface; GObject* (*load) (IAnjutaStreamLoader *obj, FILE *stream, gboolean readonly, GError **err); gchar* (*peek_interface) (IAnjutaStreamLoader *obj, FILE *stream, GError **err); } IAnjutaStreamLoaderIface;
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.
obj : |
Self |
stream : |
Stream to load |
readonly : |
Open in readonly mode. |
err : |
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.
obj : |
Self |
stream : |
Stream to load |
err : |
Error propagation and reporting |
Returns : | Plugin interface name that can load the stream. |