00001 // -*- c++ -*- 00002 00003 /* gstreamermm - a C++ wrapper for gstreamer 00004 * 00005 * Copyright 2008 The gstreamermm Development Team 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Library General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2 of the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Library General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Library General Public 00018 * License along with this library; if not, write to the Free 00019 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00020 */ 00021 00022 #ifndef _GSTREAMERBASEMM_INIT_H 00023 #define _GSTREAMERBASEMM_INIT_H 00024 00025 #include <glibmm/error.h> 00026 00027 namespace GstBase 00028 { 00029 00055 void init(int& argc, char**& argv); 00056 00078 void init(); 00079 00107 #ifdef GLIBMM_EXCEPTIONS_ENABLED 00108 bool init_check(int& argc, char**& argv); 00109 #else 00110 bool init_check(int& argc, char**& argv, std::auto_ptr<Glib::Error>& error); 00111 #endif //GLIBMM_EXCEPTIONS_ENABLED 00112 00138 #ifdef GLIBMM_EXCEPTIONS_ENABLED 00139 bool init_check(); 00140 #else 00141 bool init_check(std::auto_ptr<Glib::Error>& error); 00142 #endif //GLIBMM_EXCEPTIONS_ENABLED 00143 00144 } //namespace GstBase 00145 00146 #endif //_GSTREAMERBASEMM_INIT_H 00147