Commit Graph

137 Commits

Author SHA1 Message Date
Isaac Connor 11cacebb3b use a function called exit_zmu instead of exit() to properly close logs and db. The reason is just to reduce connection lost logs in mysql. 2018-04-23 11:14:44 -04:00
Isaac Connor fd1c69d48a switch to uint64_t for event_id because long long can actually be 128 bit 2018-04-17 13:51:20 -04:00
Isaac Connor 344539f5dc cleanup 2017-11-28 11:55:47 -05:00
Isaac Connor 64816aa005 fixes from cppcheck. 2017-11-18 16:00:10 -05:00
Isaac Connor b9f65c9f50 remove merge marker 2017-06-05 09:26:05 -04:00
Isaac Connor 451714a403 Merge branch 'master' into storageareas 2017-06-04 21:42:56 -04:00
Isaac Connor bc32837e3a fix braces 2017-05-31 13:55:21 -04:00
Isaac Connor 5ae34a7561 Merge branch 'master' into storageareas 2017-01-02 09:39:10 -05:00
Andy Bauer 254fcbcef7 update gpl 2 mailing address in source files 2016-12-26 09:23:16 -06:00
Isaac Connor 59406fd03a Merge branch 'master' into storageareas 2016-04-28 09:24:36 -04:00
Isaac Connor 24e3306955 master master 2016-04-28 09:20:56 -04:00
Isaac Connor 7d7249f328 use std::string instead of C strings. Mostly this will quiet build warnings on FreeBSD and removes the potential for buffer overflows 2016-04-26 15:48:21 -04:00
Isaac Connor 03b1ced568 tabs to spaces and use 2space indenting 2016-04-04 10:11:48 -04:00
Isaac Connor 1262e831ac rework zmu to load data from the last event with frames when it can't connect to zmc 2016-03-29 14:36:16 -04:00
Isaac Connor 33a9fc6175 fix utf8 ' characters 2015-07-15 10:37:08 -04:00
Andrew Bauer 4deb0d53c8 Add pod documentation to C binaries 2015-06-20 17:11:20 -05:00
Andrew Bauer 62b75808b3 Output to stderror when zmu can't read zm.conf 2014-12-10 17:54:09 -06:00
manupap1 b4732e4750 Close logger and database on exit 2014-11-14 22:17:44 +01:00
Isaac Connor 57e5b4fee8 Fix segfault on zmu -l due to not connectig to the shared mem 2014-10-23 09:00:53 -04:00
root cca01dc357 connect to the monitor, because instantiating the object no longer does that 2014-07-30 14:20:48 -04:00
Kfir Itzhak 0bb2ee7efc More signal improvements:
1) Cleaner code
2) Fixed the path displayed in the addr2line line
3) Improved dependency checking for backtrace
4) Few more improvements
2013-10-07 02:37:50 +03:00
stan 6ff385e407 git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3459 e3e1d417-86f3-4887-817a-d78f3d33393f 2011-06-21 09:19:10 +00:00
stan 8048c1c355 Updated to allow the versions of video4linux to existed independently of each other. Ubuntu 11.04 oalyn has V4L2.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3302 e3e1d417-86f3-4887-817a-d78f3d33393f
2011-02-15 21:59:06 +00:00
stan 46d777398e Updated to use fixed buffer sizes rather than relying on o/s defined.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3189 e3e1d417-86f3-4887-817a-d78f3d33393f
2010-11-11 12:22:35 +00:00
stan cd16c91ccd Tweaked zone image dumping.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3066 e3e1d417-86f3-4887-817a-d78f3d33393f
2010-05-27 12:18:43 +00:00
stan 18f196dbcd Added srand initialisation.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2848 e3e1d417-86f3-4887-817a-d78f3d33393f
2009-04-14 20:18:57 +00:00
stan afe253b71a Added V4L2 query
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2827 e3e1d417-86f3-4887-817a-d78f3d33393f
2009-03-31 12:57:34 +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 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 7825b97cfa Cosmetic - corrected typo
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2306 e3e1d417-86f3-4887-817a-d78f3d33393f
2008-02-13 22:44:37 +00:00
stan 9d291c0ba1 Bug 431 - Removed default args for monitor constructors and now can stream events without active monitor.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2274 e3e1d417-86f3-4887-817a-d78f3d33393f
2007-12-29 18:50:53 +00:00
stan 98c3243969 Added reload option char to allowed set.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2167 e3e1d417-86f3-4887-817a-d78f3d33393f
2007-08-29 17:33:06 +00:00
stan a0b3e2a5a3 Bug 308 - Added improved signal handling and backtracing.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1916 e3e1d417-86f3-4887-817a-d78f3d33393f
2006-04-05 12:22:27 +00:00
stan b9940650da Bug 296 - Removed extra delete monitor
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1892 e3e1d417-86f3-4887-817a-d78f3d33393f
2006-03-24 12:02:23 +00:00
stan b420c2ebd2 Bug 266 - Fixed crash, added support for displaying fle cameras and polygons.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1850 e3e1d417-86f3-4887-817a-d78f3d33393f
2006-01-21 18:02:46 +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 a998599df0 Bug 251 - Fixed problem when authentication relay set to 'none'
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1801 e3e1d417-86f3-4887-817a-d78f3d33393f
2006-01-14 13:37:11 +00:00
stan c2beb56c12 Added ZMU_ prefix to enums to avoid clashes.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1760 e3e1d417-86f3-4887-817a-d78f3d33393f
2006-01-03 09:59:32 +00:00
stan 05c2fb5dfd Bug 238 - Changes to do with the various enabled/disable/suspend/trigger modes.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1720 e3e1d417-86f3-4887-817a-d78f3d33393f
2005-12-22 16:46:25 +00:00
stan 1dd59e435a Fixed broken optional parameter to -z
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1639 e3e1d417-86f3-4887-817a-d78f3d33393f
2005-12-01 16:33:51 +00:00
stan 65f7cf09b5 Bug 216 - Zone polygons
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1630 e3e1d417-86f3-4887-817a-d78f3d33393f
2005-11-29 17:51:06 +00:00
stan 6e7daa90c5 Bug 202 - Added status summary --list function.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1602 e3e1d417-86f3-4887-817a-d78f3d33393f
2005-11-20 12:17:45 +00:00
stan e02b7311d4 Removed check on auth methods temporarily to allow any use from command line.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1571 e3e1d417-86f3-4887-817a-d78f3d33393f
2005-11-07 12:09:56 +00:00
stan 46585d9cc2 Bug 148 - Allows remote http authentication.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1531 e3e1d417-86f3-4887-817a-d78f3d33393f
2005-10-20 15:42:41 +00:00
stan 74e4bd5737 Bug 73 - Made video devices use paths rather than numbers
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1519 e3e1d417-86f3-4887-817a-d78f3d33393f
2005-10-17 10:58:25 +00:00
stan f089f28bd4 Added simplified direct config interface.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1406 e3e1d417-86f3-4887-817a-d78f3d33393f
2005-05-16 09:27:06 +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 3649417b27 Merged in PTZ control feature.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1355 e3e1d417-86f3-4887-817a-d78f3d33393f
2005-02-24 10:43:29 +00:00
stan e56123b8c0 Totally revamped authentication for zms and zmu
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1226 e3e1d417-86f3-4887-817a-d78f3d33393f
2005-01-19 01:50:24 +00:00
stan dc3b3691a0 Revamped debug initialisation and config loading.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1208 e3e1d417-86f3-4887-817a-d78f3d33393f
2005-01-15 17:45:51 +00:00
stan 1c5fee19d9 Merged in generic triggering.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1172 e3e1d417-86f3-4887-817a-d78f3d33393f
2004-12-28 17:41:55 +00:00
stan 2ba1ee4eb8 Removed secondary DB user.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1171 e3e1d417-86f3-4887-817a-d78f3d33393f
2004-12-28 17:01:25 +00:00
stan 72da78e98a Added zm.conf feature.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1170 e3e1d417-86f3-4887-817a-d78f3d33393f
2004-12-28 16:46:48 +00:00
stan b508b2a5ce Changed strcpy to strncpy, sprintf to snprintf and query parameter checks to avoid vulnerabilities.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1017 e3e1d417-86f3-4887-817a-d78f3d33393f
2004-04-19 16:02:17 +00:00
stan 0394ec52cf Initialised mon_id to 0 to prevent auth errors on device queries.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@988 e3e1d417-86f3-4887-817a-d78f3d33393f
2004-03-22 09:11:42 +00:00
stan 8526aa69aa Added scale parameter to zmu.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@864 e3e1d417-86f3-4887-817a-d78f3d33393f
2004-02-18 15:35:51 +00:00
stan 0aafd9d30b Applied Ian@zestysoft changes.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@744 e3e1d417-86f3-4887-817a-d78f3d33393f
2004-01-14 21:26:47 +00:00
stan 9638cc502a Removed extraneous brightness parameters
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@693 e3e1d417-86f3-4887-817a-d78f3d33393f
2003-11-21 10:37:33 +00:00
stan e05d512d7d Increased buffer size to BUFSIZ
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@677 e3e1d417-86f3-4887-817a-d78f3d33393f
2003-11-05 14:49:55 +00:00
stan 0cc41ddcc5 Made passwords encrypted again.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@602 e3e1d417-86f3-4887-817a-d78f3d33393f
2003-07-05 11:00:48 +00:00
stan 6cc04db6a4 Made user passwords plaintext.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@601 e3e1d417-86f3-4887-817a-d78f3d33393f
2003-07-04 15:08:07 +00:00
stan 0f328b8231 Added privileges to zmu.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@599 e3e1d417-86f3-4887-817a-d78f3d33393f
2003-07-04 14:48:51 +00:00
stan d543323c9a Added ability to control camera settings.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@576 e3e1d417-86f3-4887-817a-d78f3d33393f
2003-06-25 09:47:09 +00:00
stan 4128461aee Added missing -n option to getopt.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@518 e3e1d417-86f3-4887-817a-d78f3d33393f
2003-04-22 16:02:08 +00:00
stan 17de8a0488 Corrected warnings.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@451 e3e1d417-86f3-4887-817a-d78f3d33393f
2003-04-07 11:16:34 +00:00
stan ee8b5e8e14 Added new forced alarms off state.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@425 e3e1d417-86f3-4887-817a-d78f3d33393f
2003-03-26 13:18:26 +00:00
stan 64529e60ce Updated fro remote cameras and DB functions.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@412 e3e1d417-86f3-4887-817a-d78f3d33393f
2003-03-26 12:00:16 +00:00
stan 3443c3db7c Added LocalCamera class.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@394 e3e1d417-86f3-4887-817a-d78f3d33393f
2003-03-20 22:34:25 +00:00
stan 027329496e First phase class reorganisation.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@393 e3e1d417-86f3-4887-817a-d78f3d33393f
2003-03-19 23:07:05 +00:00
stan 5dbf628786 Made Frame timestamps and event lengths incldue fractional seconds, to enable
real time video playback, eventually.


git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@388 e3e1d417-86f3-4887-817a-d78f3d33393f
2003-03-11 15:17:30 +00:00
stan 59935302e4 Tidied up functions for device.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@381 e3e1d417-86f3-4887-817a-d78f3d33393f
2003-03-05 17:22:39 +00:00
stan 645985f2e0 Added query option to zmu.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@380 e3e1d417-86f3-4887-817a-d78f3d33393f
2003-03-05 17:14:17 +00:00
stan 376cc3bc85 Moved monitor defines into public area.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@347 e3e1d417-86f3-4887-817a-d78f3d33393f
2003-01-16 14:53:26 +00:00
stan 1e91428ede Now handles multiple options.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@295 e3e1d417-86f3-4887-817a-d78f3d33393f
2003-01-13 10:51:52 +00:00
stan a734c26f5d Changed copyright date to 2003.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@286 e3e1d417-86f3-4887-817a-d78f3d33393f
2003-01-11 18:22:27 +00:00
stan 46e9fa04de Updated zmconfig defines and now uses DB server.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@267 e3e1d417-86f3-4887-817a-d78f3d33393f
2003-01-10 17:03:03 +00:00
stan 55950fdec1 Added forced arming for X10.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@174 e3e1d417-86f3-4887-817a-d78f3d33393f
2002-12-10 23:29:22 +00:00
stan 38bea0c7b5 Changed Zone Monitor to ZoneMinder.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@160 e3e1d417-86f3-4887-817a-d78f3d33393f
2002-12-10 13:21:41 +00:00
stan 6e844a3d4e Added missing option letter for last event.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@126 e3e1d417-86f3-4887-817a-d78f3d33393f
2002-11-27 16:39:41 +00:00
stan e4072d56af Added last event id to shared memory for auto-filtering etc.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@125 e3e1d417-86f3-4887-817a-d78f3d33393f
2002-11-27 16:23:04 +00:00
stan 8e9a8b421f Changed zmu -i option to write to monitor named image file.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@119 e3e1d417-86f3-4887-817a-d78f3d33393f
2002-10-31 22:17:23 +00:00
stan 9270f7fcf9 Added help and usage.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@118 e3e1d417-86f3-4887-817a-d78f3d33393f
2002-10-31 22:12:53 +00:00
stan e6b0b0a525 Changed main to return int.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@105 e3e1d417-86f3-4887-817a-d78f3d33393f
2002-10-28 14:33:57 +00:00
stan d35e09f4d8 Added GPL header.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@53 e3e1d417-86f3-4887-817a-d78f3d33393f
2002-09-23 22:08:50 +00:00
stan 9c1d1805aa Reduced debug level to prevent syslog clutter.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@21 e3e1d417-86f3-4887-817a-d78f3d33393f
2002-09-20 19:52:02 +00:00
stan 8c40dac6e8 Changed to use DB defines from zmcfg.h
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@15 e3e1d417-86f3-4887-817a-d78f3d33393f
2002-09-19 09:49:35 +00:00
stan 945b535fca Initial revision
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2 e3e1d417-86f3-4887-817a-d78f3d33393f
2002-09-16 09:19:24 +00:00