diff options
author | Rocky Bernstein <rockyb@users.sourceforge.net> | 2004-07-20 00:50:10 +0000 |
---|---|---|
committer | Rocky Bernstein <rockyb@users.sourceforge.net> | 2004-07-20 00:50:10 +0000 |
commit | 2bb0f28dc8252b31f496f0e5bb9b590391e1b129 (patch) | |
tree | 221f41790ccd7aebb8f198660a10ae92d700e1ee /src/input/input_plugin.h | |
parent | 389adc46d80045a1de20d60217b57dd5707311dd (diff) | |
download | xine-lib-2bb0f28dc8252b31f496f0e5bb9b590391e1b129.tar.gz xine-lib-2bb0f28dc8252b31f496f0e5bb9b590391e1b129.tar.bz2 |
Add const to get_identifier return type since that's n fact what it
is. Should protect against a plugin returning a malloc'd variable for
example.
CVS patchset: 6821
CVS date: 2004/07/20 00:50:10
Diffstat (limited to 'src/input/input_plugin.h')
-rw-r--r-- | src/input/input_plugin.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/input/input_plugin.h b/src/input/input_plugin.h index 65d50ce73..3fd97d7bc 100644 --- a/src/input/input_plugin.h +++ b/src/input/input_plugin.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: input_plugin.h,v 1.56 2004/06/13 21:28:56 miguelfreitas Exp $ + * $Id: input_plugin.h,v 1.57 2004/07/20 00:50:11 rockyb Exp $ */ #ifndef HAVE_INPUT_PLUGIN_H @@ -51,8 +51,9 @@ struct input_class_s { /* * return short, human readable identifier for this plugin class + * The returned string should not be malloc'd as it is not freed. */ - char* (*get_identifier) (input_class_t *this); + const char* (*get_identifier) (input_class_t *this); /* * return human readable (verbose = 1 line) description for |