summaryrefslogtreecommitdiffstats
path: root/polyp/polyplib-context.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-08-17 17:17:22 +0000
committerLennart Poettering <lennart@poettering.net>2004-08-17 17:17:22 +0000
commitca2265f37277081b4fe82e375923483c2e03931d (patch)
tree1766658296f7ea550e9148bd467e6d0a89781c10 /polyp/polyplib-context.h
parentf693aa4c8811b67377a4fcc55887d03876fb48be (diff)
Documentation work
add pkg-config support for GLIB main loop git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@133 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/polyplib-context.h')
-rw-r--r--polyp/polyplib-context.h28
1 files changed, 15 insertions, 13 deletions
diff --git a/polyp/polyplib-context.h b/polyp/polyplib-context.h
index 6a1cc8bd..9614ce69 100644
--- a/polyp/polyplib-context.h
+++ b/polyp/polyplib-context.h
@@ -29,23 +29,25 @@
#include "polyplib-operation.h"
/** \file
- * Connection contexts */
+ * Connection contexts for asynchrononous communication with a
+ * server. A pa_context object wraps a connection to a polypaudio
+ * server using its native protocol. A context may be used to issue
+ * commands on the server or to create playback or recording
+ * streams. Multiple playback streams may be piped through a single
+ * connection context. Operations on the contect involving
+ * communication with the server are executed asynchronously: i.e. the
+ * client function do not implicitely wait for completion of the
+ * operation on the server. Instead the caller specifies a call back
+ * function that is called when the operation is completed. Currently
+ * running operations may be canceled using pa_operation_cancel(). */
+
+/** \example pacat.c
+ * A playback and recording tool using the asynchronous API */
PA_C_DECL_BEGIN
-/** The state of a connection context */
-enum pa_context_state {
- PA_CONTEXT_UNCONNECTED, /**< The context hasn't been connected yet */
- PA_CONTEXT_CONNECTING, /**< A connection is being established */
- PA_CONTEXT_AUTHORIZING, /**< The client is authorizing itself to the daemon */
- PA_CONTEXT_SETTING_NAME, /**< The client is passing its application name to the daemon */
- PA_CONTEXT_READY, /**< The connection is established, the context is ready to execute operations */
- PA_CONTEXT_FAILED, /**< The connection failed or was disconnected */
- PA_CONTEXT_TERMINATED /**< The connect was terminated cleanly */
-};
-
/** \struct pa_context
- * A connection context to a daemon */
+ * An opaque connection context to a daemon */
struct pa_context;
/** Instantiate a new connection context with an abstract mainloop API