Method

CogShellset_request_handler

Declaration [src]

void
cog_shell_set_request_handler (
  CogShell* shell,
  const char* scheme,
  CogRequestHandler* handler
)

Description [src]

Installs a handler for a custom URI scheme.

Parameters

scheme const char*
 

Name of the custom URI scheme.

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

Handler for the custom URI scheme.

 The data is owned by the caller of the function.