gnome-vfs-standard-callbacks

gnome-vfs-standard-callbacks — standard callbacks for use by gnome-vfs module writers

Synopsis




#define     GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION
#define     GNOME_VFS_MODULE_CALLBACK_HTTP_PROXY_AUTHENTICATION
struct      GnomeVFSModuleCallbackAuthenticationOut;
#define     GNOME_VFS_MODULE_CALLBACK_HTTP_SEND_ADDITIONAL_HEADERS
struct      GnomeVFSModuleCallbackAdditionalHeadersIn;
struct      GnomeVFSModuleCallbackAdditionalHeadersOut;
#define     GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS
struct      GnomeVFSModuleCallbackReceivedHeadersIn;
struct      GnomeVFSModuleCallbackReceivedHeadersOut;
#define     GNOME_VFS_MODULE_CALLBACK_STATUS_MESSAGE
struct      GnomeVFSModuleCallbackStatusMessageIn;
struct      GnomeVFSModuleCallbackStatusMessageOut;

Description

Details

GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION

#define GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION "simple-authentication"


GNOME_VFS_MODULE_CALLBACK_HTTP_PROXY_AUTHENTICATION

#define GNOME_VFS_MODULE_CALLBACK_HTTP_PROXY_AUTHENTICATION "http:proxy-authentication"


struct GnomeVFSModuleCallbackAuthenticationOut

struct GnomeVFSModuleCallbackAuthenticationOut {

	char *username;		/* will be freed by g_free,
				 * NULL indicates no auth should be provided;
				 * if the request requires authn, the operation
				 * will fail with a GNOME_VFS_ERROR_ACCESS_DENIED
				 * code
				 */
	char *password;		/* will be freed by g_free */

	/* Reserved "padding" to avoid future breaks in ABI compatibility */
	void *reserved1;
	void *reserved2;

};


GNOME_VFS_MODULE_CALLBACK_HTTP_SEND_ADDITIONAL_HEADERS

#define GNOME_VFS_MODULE_CALLBACK_HTTP_SEND_ADDITIONAL_HEADERS "http:send-additional-headers"


struct GnomeVFSModuleCallbackAdditionalHeadersIn

struct GnomeVFSModuleCallbackAdditionalHeadersIn {

	GnomeVFSURI *uri;		/* URI of operation */

	/* Reserved "padding" to avoid future breaks in ABI compatibility */
	void *reserved1;
	void *reserved2;
};


struct GnomeVFSModuleCallbackAdditionalHeadersOut

struct GnomeVFSModuleCallbackAdditionalHeadersOut {

	GList *headers;			/* list of headers, will be freeed */

	/* Reserved "padding" to avoid future breaks in ABI compatibility */
	void *reserved1;
	void *reserved2;
};


GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS

#define GNOME_VFS_MODULE_CALLBACK_HTTP_RECEIVED_HEADERS "http:received-headers"


struct GnomeVFSModuleCallbackReceivedHeadersIn

struct GnomeVFSModuleCallbackReceivedHeadersIn {

	GnomeVFSURI *uri;		/* URI of operation */
	GList *headers;			/* list of headers */

	/* Reserved "padding" to avoid future breaks in ABI compatibility */
	void *reserved1;
	void *reserved2;
};


struct GnomeVFSModuleCallbackReceivedHeadersOut

struct GnomeVFSModuleCallbackReceivedHeadersOut {

	int dummy;

	/* Reserved "padding" to avoid future breaks in ABI compatibility */
	void *reserved1;
	void *reserved2;
};


GNOME_VFS_MODULE_CALLBACK_STATUS_MESSAGE

#define GNOME_VFS_MODULE_CALLBACK_STATUS_MESSAGE "status-message"


struct GnomeVFSModuleCallbackStatusMessageIn

struct GnomeVFSModuleCallbackStatusMessageIn {

	char *uri;		/* Full URI of operation */
	char *message;		/* A message indicating the current state or
				 * NULL if there is no message */
	int percentage;		/* Percentage indicating completeness 0-100 or
				 * -1 if there is no progress percentage to
				 * report */

	/* Reserved "padding" to avoid future breaks in ABI compatibility */
	void *reserved1;
	void *reserved2;
};


struct GnomeVFSModuleCallbackStatusMessageOut

struct GnomeVFSModuleCallbackStatusMessageOut {

	int dummy; /* empty structs not allowed */

	/* Reserved "padding" to avoid future breaks in ABI compatibility */
	void *reserved1;
	void *reserved2;
};