NULL);
}
-/**
+/*
* Sets the GMainContext @client is associated with to @main_context
- **/
+ */
static void
gssdp_client_set_main_context (GSSDPClient *client,
GMainContext *main_context)
g_object_unref (inet_address);
}
-/**
+/*
* Generates the default server ID
- **/
+ */
static char *
make_server_id (void)
{
}
#endif
-/**
+/*
* Called when data can be read from the socket
- **/
+ */
static gboolean
socket_source_cb (GSSDPSocketSource *socket_source, GSSDPClient *client)
{
NULL);
}
-/**
+/*
* Sets the #GSSDPClient @resource_browser is associated with to @client
- **/
+ */
static void
gssdp_resource_browser_set_client (GSSDPResourceBrowser *resource_browser,
GSSDPClient *client)
return resource_browser->priv->active;
}
-/**
+/*
* Resource expired: Remove
- **/
+ */
static gboolean
resource_expire (gpointer user_data)
{
resource_unavailable (resource_browser, headers);
}
-/**
+/*
* Received a message
- **/
+ */
static void
message_received_cb (GSSDPClient *client,
const char *from_ip,
}
}
-/**
+/*
* Free a Resource structure and its contained data
- **/
+ */
static void
resource_free (gpointer data)
{
return TRUE;
}
-/**
+/*
* Clears the cached resources hash
- **/
+ */
static void
clear_cache (GSSDPResourceBrowser *resource_browser)
{
NULL);
}
-/**
+/*
* Sets the #GSSDPClient @resource_group is associated with @client
- **/
+ */
static void
gssdp_resource_group_set_client (GSSDPResourceGroup *resource_group,
GSSDPClient *client)
}
}
-/**
+/*
* Called to re-announce all resources periodically
- **/
+ */
static gboolean
resource_group_timeout (gpointer user_data)
{
return TRUE;
}
-/**
+/*
* Received a message
- **/
+ */
static void
message_received_cb (GSSDPClient *client,
const char *from_ip,
}
}
-/**
+/*
* Construct the AL (Alternative Locations) header for @resource
- **/
+ */
static char *
construct_al (Resource *resource)
{
return st;
}
-/**
+/*
* Send a discovery response
- **/
+ */
static gboolean
discovery_response_timeout (gpointer user_data)
{
return FALSE;
}
-/**
+/*
* Free a DiscoveryResponse structure and its contained data
- **/
+ */
static void
discovery_response_free (DiscoveryResponse *response)
{
g_slice_free (DiscoveryResponse, response);
}
-/**
+/*
* Send the next queued message, if any
- **/
+ */
static gboolean
process_queue (gpointer data)
{
}
}
-/**
+/*
* Add a message to sending queue
*
* Do not free @message.
- **/
+ */
static void
queue_message (GSSDPResourceGroup *resource_group,
char *message)
}
}
-/**
+/*
* Send ssdp:alive message for @resource
- **/
+ */
static void
resource_alive (Resource *resource)
{
g_free (al);
}
-/**
+/*
* Send ssdp:byebye message for @resource
- **/
+ */
static void
resource_byebye (Resource *resource)
{
}
}
-/**
+/*
* Free a Resource structure and its contained data
- **/
+ */
static void
resource_free (Resource *resource)
{