]> git.sesse.net Git - vlc/blobdiff - plugins/idct/idct.c
* ALL: new module API. Makes a few things a lot simpler, and we gain
[vlc] / plugins / idct / idct.c
index af1fa323aed487888405a1223a6155dfdbadfe8d..9e39acb75506ff102048d085a3af925458413b3d 100644 (file)
@@ -2,7 +2,7 @@
  * idct.c : C IDCT module
  *****************************************************************************
  * Copyright (C) 1999-2001 VideoLAN
- * $Id: idct.c,v 1.24 2002/06/01 12:31:59 sam Exp $
+ * $Id: idct.c,v 1.25 2002/07/31 20:56:51 sam Exp $
  *
  * Author: GaĆ«l Hendryckx <jimmy@via.ecp.fr>
  *
 #include "idct.h"
 #include "block_c.h"
 
-/*****************************************************************************
- * Local and extern prototypes.
- *****************************************************************************/
-static void idct_getfunctions( function_list_t * p_function_list );
+static int Open( vlc_object_t *p_this );
 
 /*****************************************************************************
- * Build configuration tree.
+ * Module descriptor
  *****************************************************************************/
-MODULE_CONFIG_START
-MODULE_CONFIG_STOP
-
-MODULE_INIT_START
-    SET_DESCRIPTION( _("IDCT module") )
-    ADD_CAPABILITY( IDCT, 50 )
-    ADD_SHORTCUT( "c" )
-MODULE_INIT_STOP
-
-MODULE_ACTIVATE_START
-    idct_getfunctions( &p_module->p_functions->idct );
-MODULE_ACTIVATE_STOP
-
-MODULE_DEACTIVATE_START
-MODULE_DEACTIVATE_STOP
+vlc_module_begin();
+    set_description( _("IDCT module") );
+    set_capability( "idct", 50 );
+    add_shortcut( "c" );
+    set_callbacks( Open, NULL );
+vlc_module_end();
 
 /* Following functions are local */