Declaration [src]

purple_signal_register (
  void* instance,
  const char* signal,
  PurpleSignalMarshalFunc marshal,
  GType ret_type,
  int num_values,

Description [src]

Registers a signal in an instance.

This function is not directly available to language bindings


instance void*

The instance to register the signal for.

 The argument can be NULL.
 The data is owned by the caller of the function.
signal const char*

The signal name.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
marshal PurpleSignalMarshalFunc

The marshal function.

ret_type GType

The return type, or G_TYPE_NONE for no return type.

num_values int

The number of values to be passed to the callbacks.


The types of the parameters for the callbacks.

Return value

Returns: gulong

The signal ID local to that instance, or 0 if the signal couldn’t be registered.