![]() |
![]() |
![]() |
Spread RPC - Reference Manual | ![]() |
---|---|---|---|---|
Interation with GMainLoopInteration with GMainLoop — How to integrate SpreadRPC library with a normal GLib application |
gboolean (*SPRpcGlibCallback) (SPRpcGlibSource *source, SPRpcStatus status, gpointer user_data); typedef SPRpcGlibSource; GSource* sp_rpc_glib_source (SPRpc *rpc);
gboolean (*SPRpcGlibCallback) (SPRpcGlibSource *source, SPRpcStatus status, gpointer user_data);
The callback for the error message of the SPRpc GSource
|
the SPRpcGlibSource |
|
the status, always != SP_RCP_STATUS_DONE |
|
user data |
Returns : |
it should return FALSE if the source should be removed |
typedef struct sp_rpc_glib_source_t SPRpcGlibSource;
The GSource for the SPRpc library
GSource* sp_rpc_glib_source (SPRpc *rpc);
Creates a valid GSource for a GMainContext. It permits to work with a GLib main loop and to receive error message trough the callback.
|
a SPRpc |
Returns : |
a GSource |