diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-06-08 20:44:27 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-06-08 20:44:27 +0000 |
commit | 169715ef3e057ba83db5307c799e5b8543cc5d46 (patch) | |
tree | 212fd570b67cb050011f311a8faa9cd8ebcbdb37 /src/xine-engine/xine_plugin.h | |
parent | 8afb108e2d6beab74685b610ba5295b56fa77d23 (diff) | |
download | xine-lib-169715ef3e057ba83db5307c799e5b8543cc5d46.tar.gz xine-lib-169715ef3e057ba83db5307c799e5b8543cc5d46.tar.bz2 |
a better approach to the module unload prevention
(when this works in OSX, we can remove the PLUGIN_NO_UNLOAD flag from
video_out_macosx.m, but the support for this in the plugin loader seems
to be a good idea anyway)
CVS patchset: 6661
CVS date: 2004/06/08 20:44:27
Diffstat (limited to 'src/xine-engine/xine_plugin.h')
-rw-r--r-- | src/xine-engine/xine_plugin.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/xine-engine/xine_plugin.h b/src/xine-engine/xine_plugin.h index 87662595f..5ed84c6c0 100644 --- a/src/xine-engine/xine_plugin.h +++ b/src/xine-engine/xine_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: xine_plugin.h,v 1.13 2004/05/16 17:58:16 tmattern Exp $ + * $Id: xine_plugin.h,v 1.14 2004/06/08 20:44:27 mroi Exp $ * * generic plugin definitions * @@ -39,9 +39,14 @@ /* this flag may be or'ed with type in order to force preloading the plugin. * very useful to register config items on xine initialization. */ -#define PLUGIN_MUST_PRELOAD 128 +#define PLUGIN_MUST_PRELOAD (1 << 7) -#define PLUGIN_TYPE_MASK 127 +/* this flag may be or'ed with type to prevent the plugin loader from unloading + * the plugin + */ +#define PLUGIN_NO_UNLOAD (1 << 8) + +#define PLUGIN_TYPE_MASK ((1 << 7) - 1) typedef struct { uint8_t type; /* one of the PLUGIN_* constants above */ |