Commit Graph

28 Commits

Author SHA1 Message Date
Isaac Connor 0af68a0914 Implement read_into with a timeout 2021-03-05 14:12:44 -05:00
Isaac Connor 3ad76f18ec code style updates 2021-03-01 16:47:18 -05:00
Peter Keresztes Schmidt 0dbc39ee25 Cleanup and reorganize includes
With this commit a unified structure for includes is introduced.
The general rules:
 * Only include what you need
 * Include wherever possible in the cpp and forward-declare in the header

 The includes are sorted in a local to global fashion. This means for the include order:
  0. If cpp file: The corresponding h file and an empty line
  1. Includes from the project sorted alphabetically
  2. System/library includes sorted alphabetically
  3. Conditional includes
2021-02-04 18:02:01 +01:00
Peter Keresztes Schmidt 5a57efdfe2 Replace deprecated C header includes with the C++ ones. 2021-02-04 05:39:03 +01:00
Isaac Connor 666299d5fa code style 2021-01-27 16:11:24 -05:00
Peter Keresztes Schmidt 8f980a1168 Convert NULL/0 to nullptr
The 0 -> nullptr changes should definitely improve readability.
2020-08-26 22:03:40 +02:00
Isaac Connor 1686584908 more cppcheck fixes 2017-11-16 09:19:27 -05:00
Isaac Connor fece06c9e3 google code style 2017-10-19 17:12:36 -04:00
Isaac Connor 7116d66500 use the correct pointer casts 2017-01-16 21:57:21 -05:00
Isaac Connor 29acad163c Add some casts to quiet warnings. The warnings happen because we are doing arithmetic on pointers. 2017-01-15 14:24:50 -05:00
Andy Bauer 254fcbcef7 update gpl 2 mailing address in source files 2016-12-26 09:23:16 -06:00
Isaac Connor 03b1ced568 tabs to spaces and use 2space indenting 2016-04-04 10:11:48 -04:00
Dmitry Smirnov 333e7ec67b header typo corrections 2015-09-19 17:39:54 +10:00
Isaac Connor 994de4ae0a Introduce a read_into function in the Buffer. Use it when reading over http from a camera to remove an extra mem copy. Limit reads to 1 network buffer instead of reading everything that is available. 2015-07-06 15:57:06 -04:00
Isaac Connor 72f34203a0 remove the case for level >= 2. Since level is a bool, this code can never execute. Also, there are no calls to tidy in the current code with values other than 0 or 1, so it's safe to do. Also it removes an error message when using clang++ 2014-11-13 14:41:49 -05:00
stan a91d2a0697 Rationalised and renamed buffer class.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2657 e3e1d417-86f3-4887-817a-d78f3d33393f
2008-10-09 09:15:23 +00:00
stan fff2e022ff Improvements.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2653 e3e1d417-86f3-4887-817a-d78f3d33393f
2008-10-09 08:27:39 +00:00
stan e6041e24a7 Uppdated copyright headers
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2611 e3e1d417-86f3-4887-817a-d78f3d33393f
2008-07-25 09:33:23 +00:00
stan 2068391598 Bug 483 - Fixes to reported buffer class bugs
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2577 e3e1d417-86f3-4887-817a-d78f3d33393f
2008-07-21 08:46:04 +00:00
stan aa26ab7b18 git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2532 e3e1d417-86f3-4887-817a-d78f3d33393f 2008-07-16 08:35:59 +00:00
stan ee44d4b274 Updated debug format
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2513 e3e1d417-86f3-4887-817a-d78f3d33393f
2008-07-14 14:43:47 +00:00
stan 235dde1a80 Updated copyright statement.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1829 e3e1d417-86f3-4887-817a-d78f3d33393f
2006-01-17 10:56:30 +00:00
stan 879add6b74 Added extra check and warning.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1453 e3e1d417-86f3-4887-817a-d78f3d33393f
2005-06-12 17:05:19 +00:00
stan f03079af6e None regexp netcan support.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1405 e3e1d417-86f3-4887-817a-d78f3d33393f
2005-05-14 14:40:17 +00:00
stan 322caab34b Checks for some buffer overruns
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1396 e3e1d417-86f3-4887-817a-d78f3d33393f
2005-05-05 16:43:36 +00:00
stan 264c23d687 Updated copyright statement
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1360 e3e1d417-86f3-4887-817a-d78f3d33393f
2005-02-24 14:40:14 +00:00
stan 91f1a558ce Removed dump functions.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@973 e3e1d417-86f3-4887-817a-d78f3d33393f
2004-03-17 10:27:00 +00:00
stan 84dd33ade1 Added regular expression and memory buffer files.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@944 e3e1d417-86f3-4887-817a-d78f3d33393f
2004-03-13 14:06:53 +00:00