]> code.delx.au - pulseaudio/blobdiff - polyp/polyplib-context.h
Make the whole stuff LGPL only
[pulseaudio] / polyp / polyplib-context.h
index 84e47b64d3d3f4f6b6f09f6d46cf5c246bbabfb4..565701b22f6595e1cda7c537069c6659fa989f50 100644 (file)
@@ -8,7 +8,7 @@
   This file is part of polypaudio.
  
   polypaudio is free software; you can redistribute it and/or modify
-  it under the terms of the GNU General Public License as published
+  it under the terms of the GNU Lesser General Public License as published
   by the Free Software Foundation; either version 2 of the License,
   or (at your option) any later version.
  
@@ -17,7 +17,7 @@
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
   General Public License for more details.
  
-  You should have received a copy of the GNU General Public License
+  You should have received a copy of the GNU Lesser General Public License
   along with polypaudio; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
   USA.
@@ -45,6 +45,9 @@
 /** \example pacat.c
  * A playback and recording tool using the asynchronous API */
 
+/** \example paplay.c
+ * A sound file playback tool using the asynchronous API, based on libsndfile */
+
 PA_C_DECL_BEGIN
 
 /** \struct pa_context
@@ -99,6 +102,12 @@ struct pa_operation* pa_context_set_default_sink(struct pa_context *c, const cha
 /** Set the name of the default source. \since 0.4 */
 struct pa_operation* pa_context_set_default_source(struct pa_context *c, const char *name, void(*cb)(struct pa_context*c, int success,  void *userdata), void *userdata);
 
+/** Returns 1 when the connection is to a local daemon. Returns negative when no connection has been made yet. \since 0.5 */
+int pa_context_is_local(struct pa_context *c);
+
+/** Set a different application name for context on the server. \since 0.5 */
+struct pa_operation* pa_context_set_name(struct pa_context *c, const char *name, void(*cb)(struct pa_context*c, int success,  void *userdata), void *userdata);
+
 PA_C_DECL_END
 
 #endif