diff --git a/src/include/Makefile.am b/src/include/Makefile.am index 243bb12f..561af024 100644 --- a/src/include/Makefile.am +++ b/src/include/Makefile.am @@ -16,6 +16,6 @@ noinst_HEADERS = asm-linkage.h audio_collector.h audio_input.h audio_jack.h \ shouter.h soft_screen.h text_layer.h theora11_encoder.h theorautils.h \ trigger_ctrl.h tvfreq.h unicap_layer.h v4l_layer.h video_encoder.h \ video_layer.h vimo_ctrl.h vroot.h wiimote_ctrl.h xgrab_layer.h xscreensaver_layer.h \ - yuv_screeen.h opencv_cam_layer.h + yuv_screeen.h opencv_cam_layer.h exceptions.h EXTRA_DIST = jsfreej.msg diff --git a/src/include/closure.h b/src/include/closure.h index 40812937..515313b4 100644 --- a/src/include/closure.h +++ b/src/include/closure.h @@ -25,6 +25,7 @@ #include #include +#include class Closure; diff --git a/src/include/exceptions.h b/src/include/exceptions.h new file mode 100644 index 00000000..cb5376bf --- /dev/null +++ b/src/include/exceptions.h @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2009 - Luca Bigliardi + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef __FREEJ_EXCEPTIONS_H__ +#define __FREEJ_EXCEPTIONS_H__ + +#include + +class FreejError : public std::runtime_error { + public: + FreejError(const std::string& msg = "", int rv = 0) + : std::runtime_error(msg), rv(rv) { } + int retval() { return rv; } + private: + int rv; +}; + +#endif + diff --git a/src/include/jutils.h b/src/include/jutils.h index 2ced16e6..3261cf91 100644 --- a/src/include/jutils.h +++ b/src/include/jutils.h @@ -22,16 +22,6 @@ #include #include #include -#include - -class FreejError : public std::runtime_error { - public: - FreejError(const std::string& msg = "", int rv = 0) - : std::runtime_error(msg), rv(rv) { } - int retval() { return rv; } - private: - int rv; -}; class ConsoleController;