From 95faa6568854b5f861db07e9b8697169aaceec3c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 7 Jan 2014 13:53:28 +0000 Subject: Add unfinished check-for-updates. Bump ffmpeg to get windows build fix. --- src/lib/update.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/lib/update.h (limited to 'src/lib/update.h') diff --git a/src/lib/update.h b/src/lib/update.h new file mode 100644 index 000000000..2063dd484 --- /dev/null +++ b/src/lib/update.h @@ -0,0 +1,39 @@ +/* + Copyright (C) 2014 Carl Hetherington + + 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., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +class UpdateChecker +{ +public: + UpdateChecker (); + ~UpdateChecker (); + + enum Result { + YES, + MAYBE, + NO + }; + + Result run (); + + size_t write_callback (void *, size_t, size_t); + +private: + char* _buffer; + int _offset; +}; -- cgit v1.2.3