Method

GUPnPContexthost_path_for_agent

Declaration [src]

gboolean
gupnp_context_host_path_for_agent (
  GUPnPContext* context,
  const char* local_path,
  const char* server_path,
  GRegex* user_agent
)

Description [src]

Use this method to serve different local path to specific user-agent(s). The path server_path must already be hosted by context.

Available since:0.14.0

Parameters

local_path const char*
 

Path to the local file or folder to be hosted.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
server_path const char*
 

Web server path already being hosted.

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

The user-agent as a GRegex.

 The data is owned by the caller of the function.

Return value

Returns: gboolean
 

TRUE on success, FALSE otherwise.