mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
9cf490f25e
It is an implementation of a proposal that originated from this discussion. Its aim is to allow you to have many different audio programs running at once, to save their setup, close them down and then easily reload the setup at some other time. LASH doesn't deal with any kind of audio data itself; it just runs programs, deals with saving/loading (arbitrary) data and connects different kinds of virtual audio ports together (currently JACK and ALSA sequencer ports). It can also be used to move entire sessions between computers, or post sessions on the Internet for download. WWW: http://www.nongnu.org/lash/ PR: ports/107875 Submitted by: trasz <trasz at pin.if.uz.zgora.pl>
35 lines
717 B
C
35 lines
717 B
C
--- lashd/store.c.orig Sat Jan 13 15:45:09 2007
|
|
+++ lashd/store.c Sat Jan 13 15:45:12 2007
|
|
@@ -35,6 +35,31 @@
|
|
|
|
#define STORE_INFO_FILE ".store_info"
|
|
|
|
+ssize_t
|
|
+getline (char **lineptr, size_t *n, FILE *stream)
|
|
+{
|
|
+ int linelen;
|
|
+
|
|
+ char *line=fgetln(stream, &linelen);
|
|
+
|
|
+ if (line==NULL) {
|
|
+ *lineptr=NULL;
|
|
+ return -1;
|
|
+ }
|
|
+
|
|
+ if (linelen + 1 > *n ) {
|
|
+ *lineptr=realloc(*lineptr, linelen + 1);
|
|
+ *n=linelen + 1;
|
|
+
|
|
+ if (lineptr==NULL)
|
|
+ return -1;
|
|
+ }
|
|
+
|
|
+ strlcpy(*lineptr, line, linelen + 1);
|
|
+
|
|
+ return linelen;
|
|
+}
|
|
+
|
|
void
|
|
store_free(store_t * store)
|
|
{
|