AgsPluginController

AgsPluginController — provide abstract controller

Stability Level

Stable, unless otherwise indicated

Functions

Types and Values

Object Hierarchy

    GInterface
    ╰── AgsPluginController

Includes

#include <ags/server/controller/ags_plugin_controller.h>

Description

The AgsPluginController provides you an abstraction of controller implementation.

Functions

ags_plugin_controller_do_request ()

gpointer
ags_plugin_controller_do_request (AgsPluginController *plugin_controller,
                                  SoupServerMessage *msg,
                                  GHashTable *query,
                                  GObject *security_context,
                                  gchar *path,
                                  gchar *login,
                                  gchar *security_token);

Do request.

Parameters

plugin_controller

the AgsPluginController

 

msg

the SoupServerMessage

 

query

the GHashTable

 

security_context

the AgsSecurityContext

 

path

the context path to access

 

login

the login

 

security_token

the security token

 

Returns

the GList containing AgsResponse

Since: 3.0.0


AGS_IS_PLUGIN_CONTROLLER()

#define AGS_IS_PLUGIN_CONTROLLER(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PLUGIN_CONTROLLER))

AGS_IS_PLUGIN_CONTROLLER_INTERFACE()

#define AGS_IS_PLUGIN_CONTROLLER_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_PLUGIN_CONTROLLER))

AGS_PLUGIN_CONTROLLER()

#define AGS_PLUGIN_CONTROLLER(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PLUGIN_CONTROLLER, AgsPluginController))

AGS_PLUGIN_CONTROLLER_GET_INTERFACE()

#define AGS_PLUGIN_CONTROLLER_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_PLUGIN_CONTROLLER, AgsPluginControllerInterface))

AGS_PLUGIN_CONTROLLER_INTERFACE()

#define AGS_PLUGIN_CONTROLLER_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_PLUGIN_CONTROLLER, AgsPluginControllerInterface))

ags_plugin_controller_get_type ()

GType
ags_plugin_controller_get_type ();

Types and Values

AGS_TYPE_PLUGIN_CONTROLLER

#define AGS_TYPE_PLUGIN_CONTROLLER                    (ags_plugin_controller_get_type())

AgsPluginController

typedef struct _AgsPluginController AgsPluginController;

struct AgsPluginControllerInterface

struct AgsPluginControllerInterface {
  GTypeInterface ginterface;

  gpointer (*do_request)(AgsPluginController *plugin_controller,
			 SoupServerMessage *msg,
			 GHashTable *query,
			 GObject *security_context,
			 gchar *path,
			 gchar *login,
			 gchar *security_token);
};