Who's online
There are currently 0 users and 0 guests online.
|
Diff for LV2 Dynamic Manifest extension C header file
The revisions let you track differences between multiple versions of a post.
| 10 June, 2008 - 11:30 by stefano | | 10 June, 2008 - 12:56 by stefano |
|---|
| | | next diff > | | Changes to Body | | Line 3 |
Line 3 |
| | {{{
| | {{{
|
| | /*
| | /*
|
| - | * Dynamic Manifest extension for LV2 plugins
| + | * Dynamic Manifest extension for LV2 plugins
|
| | * Revision 1
| | * Revision 1
|
| | *
| | *
|
| - | * Copyright (C) 2008 Stefano D'Angelo <zanga.mail@gmail.com>
| + | * Copyright (C) 2008 Stefano D'Angelo <zanga.mail@gmail.com>
|
| | * All rights reserved.
| | * All rights reserved.
|
| | *
| | *
|
| - | * Redistribution and use in source and binary forms, with or without
| + | * Redistribution and use in source and binary forms, with or without
|
| - | * modification, are permitted provided that the following conditions
| + | * modification, are permitted provided that the following conditions
|
| | * are met:
| | * are met:
|
| | * 1. Redistributions of source code must retain the above copyright
| | * 1. Redistributions of source code must retain the above copyright
|
| Line 16 |
Line 16 |
| | * 2. Redistributions in binary form must reproduce the above copyright
| | * 2. Redistributions in binary form must reproduce the above copyright
|
| | * notice, this list of conditions and the following disclaimer in the
| | * notice, this list of conditions and the following disclaimer in the
|
| - | * documentation and/or other materials provided with the distribution.
| + | * documentation and/or other materials provided with the distribution.
|
| - | * 3. The name of the author may not be used to endorse or promote products
| + | * 3. The name of the author may not be used to endorse or promote products
|
| - | * derived from this software without specific prior written permission.
| + | * derived from this software without specific prior written permission.
|
| | *
| | *
|
| | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
| | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
| - | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
| + | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
| - | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
| + | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
| | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
| | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
| - | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
| + | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
| - | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
| + | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
| | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| - | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
| + | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| - | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
| + | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
| | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
| | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| | */
| | */
|
| Line 36 |
Line 36 |
| |
| |
|
| | #include <stdio.h>
| | #include <stdio.h>
|
| - |
| + |
|
| - | /* This function will create a temporary file containing the dynamically
| + | /* This function will create a temporary file containing the dynamically
|
| - | * generated manifest.ttl-like file and return a FILE pointer or NULL in case
| + | * generated manifest.ttl-like file and return a FILE pointer or NULL in case
|
| - | * of failure. */
| + | * of failure. */
|
| - | FILE * lv2_dyn_manifest();
| + | FILE * lv2_dyn_manifest();
|
| - |
| + |
|
| - | /* This function will unlink/delete the temporary file created by
| + | /* This function will unlink/delete the temporary file created by
|
| | * lv2_dyn_manifest().
| | * lv2_dyn_manifest().
|
| - | *
| + | *
|
| - | * The host should not attempt to do this on its own, for example using fclose()
| + | * The host should not attempt to do this on its own, for example using fclose()
|
| - | * on the file, but it should instead call this function passing the value
| + | * on the file, but it should instead call this function passing the value
|
| | * returned by lv2_dyn_manifest() to it.
| | * returned by lv2_dyn_manifest() to it.
|
| | *
| | *
|
Revision of 10 June, 2008 - 12:56:
* This is not definitive yet *
/*
* Dynamic Manifest extension for LV2 plugins
* Revision 1
*
* Copyright (C) 2008 Stefano D'Angelo <zanga.mail@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef LV2_DYN_MANIFEST_H_INCLUDED
#define LV2_DYN_MANIFEST_H_INCLUDED
#include <stdio.h>
/* This function will create a temporary file containing the dynamically
* generated manifest.ttl-like file and return a FILE pointer or NULL in case
* of failure. */
FILE * lv2_dyn_manifest();
/* This function will unlink/delete the temporary file created by
* lv2_dyn_manifest().
*
* The host should not attempt to do this on its own, for example using fclose()
* on the file, but it should instead call this function passing the value
* returned by lv2_dyn_manifest() to it.
*
* Furthermore, this function should be called if and only if lv2_dyn_manifest()
* was successful and possibly just after reading the generated file. */
void lv2_dyn_manifest_done(FILE *fp);
#endif /* LV2_DYN_MANIFEST_H_INCLUDED */
|