diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-07 13:53:28 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-07 13:53:28 +0000 |
| commit | 95faa6568854b5f861db07e9b8697169aaceec3c (patch) | |
| tree | 18c047f5ebd4d937c3f630f88fe814759158dd3d /src/lib/update.h | |
| parent | d867b45c8de7400c977d7d1f188936ba3399432e (diff) | |
Add unfinished check-for-updates. Bump ffmpeg to get windows build fix.
Diffstat (limited to 'src/lib/update.h')
| -rw-r--r-- | src/lib/update.h | 39 |
1 files changed, 39 insertions, 0 deletions
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 <cth@carlh.net> + + 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; +}; |
