00001 /***************************************************************************** 00002 * objects.c: Generic lua<->vlc object wrapper 00003 ***************************************************************************** 00004 * Copyright (C) 2007-2008 the VideoLAN team 00005 * $Id$ 00006 * 00007 * Authors: Antoine Cellerier <dionoea at videolan tod org> 00008 * Pierre d'Herbemont <pdherbemont # videolan.org> 00009 * 00010 * This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program; if not, write to the Free Software 00022 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. 00023 *****************************************************************************/ 00024 00025 #ifndef VLC_LUA_OBJECTS_H 00026 #define VLC_LUA_OBJECTS_H 00027 00028 int __vlclua_push_vlc_object( lua_State *L, vlc_object_t *p_obj, 00029 lua_CFunction pf_gc ); 00030 #define vlclua_push_vlc_object( a, b, c ) \ 00031 __vlclua_push_vlc_object( a, VLC_OBJECT( b ), c ) 00032 int vlclua_gc_release( lua_State *L ); 00033 00034 #endif 00035
1.5.6