[libdmapsharing] Make sample code in documentation wider for web display
- From: W. Michael Petullo <wmpetullo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdmapsharing] Make sample code in documentation wider for web display
- Date: Sun, 25 Mar 2018 04:07:51 +0000 (UTC)
commit bf83aaf159c217f88fbca632938e480bd923144a
Author: W. Michael Petullo <mike flyn org>
Date: Sun Mar 25 00:07:41 2018 -0400
Make sample code in documentation wider for web display
Signed-off-by: W. Michael Petullo <mike flyn org>
doc/connectedcb.xml | 5 +----
doc/serviceaddedcb.xml | 14 +++-----------
2 files changed, 4 insertions(+), 15 deletions(-)
---
diff --git a/doc/connectedcb.xml b/doc/connectedcb.xml
index 421b260..30aa940 100644
--- a/doc/connectedcb.xml
+++ b/doc/connectedcb.xml
@@ -27,10 +27,7 @@ third argument to dmap_connection_start:
</para>
<screen>
-connected_cb(DmapConnection *connection,
- gboolean result,
- const char *reason,
- DmapDb *db)
+connected_cb(DmapConnection *connection, gboolean result, const char *reason, DmapDb *db)
{
g_print ("DB has %lu entries\n", dmap_db_count (db));
dmap_db_foreach (db, print_record, NULL);
diff --git a/doc/serviceaddedcb.xml b/doc/serviceaddedcb.xml
index 4529793..1b870ea 100644
--- a/doc/serviceaddedcb.xml
+++ b/doc/serviceaddedcb.xml
@@ -33,9 +33,7 @@ The following is a simple "service-added" callback which creates a DAAP connecti
</para>
<screen>
static void
-service_added_cb(DmapMdnsBrowser *browser,
- DmapMdnsBrowserService *service,
- gpointer user_data)
+service_added_cb(DmapMdnsBrowser *browser, DmapMdnsBrowserService *service, gpointer user_data)
DmapRecordFactory *factory;
DmapConnection *conn;
@@ -50,14 +48,8 @@ service_added_cb(DmapMdnsBrowser *browser,
if (factory == NULL) {
g_error("Error creating record factory");
}
- conn = DMAP_CONNECTION(dmap_av_connection_new(service->name,
- service->host,
- service->port,
- db,
- factory));
- dmap_connection_start(conn,
- (DmapConnectionFunc) connected_cb,
- db);
+ conn = DMAP_CONNECTION(dmap_av_connection_new(service->name, service->host, service->port, db,
factory));
+ dmap_connection_start(conn, (DmapConnectionFunc) connected_cb, db);
}
</screen>
</refsect1>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]