Commit Graph

24 Commits

Author SHA1 Message Date
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 a6245d9e90 Minor code style update 2020-11-27 13:27:51 -05:00
Isaac Connor c7b6db9be7 Put backticks around all columns and tables in sql to deal with mysql 8 2019-08-14 16:18:21 -04:00
Isaac Connor d33e094526 Merge branch 'master' into storageareas 2019-02-06 17:03:41 -05:00
Isaac Connor 6bc83ca6a2 Set Default Scheme 2018-01-23 09:07:40 -05:00
Isaac Connor 2922a86d23 fixes to new Storage Schemes code 2017-12-19 11:01:03 -05:00
Isaac Connor d312482a2b add StorageScheme to Storage and Events. Deprecate ZM_USE_DEEP_STORAGE 2017-12-18 12:52:26 -05:00
Isaac Connor 819c2e5190 fix possible not null-terminated strncpy. Wouldn't actually happen because we are copying from the db field which is 1 smaller than the variable but Coverity doesn't know that. 2017-12-12 11:48:12 -05:00
Isaac Connor 085d239a6e Merge branch 'master' into storageareas 2017-06-13 18:02:28 -04:00
Isaac Connor cf9fa78ca3 work on fixing event view 2016-09-29 09:28:48 -04:00
Isaac Connor 187e952ffc append PATH_WEB for relative dir_events when instsantiating default Storage Object 2016-09-28 07:10:20 -04:00
Steve Gilvarry ab5dff1650 Match spacing, nope cannot be perfect 2016-09-26 21:43:08 +10:00
Steve Gilvarry 664bfded6f Match spacing 2016-09-26 21:38:39 +10:00
Steve Gilvarry 2eba0b4c45 Swap event and web path around the right way 2016-09-26 21:22:58 +10:00
Isaac Connor aaab089b72 make storagea->Path absolute by appending PATH_WEB 2016-09-25 09:31:20 -04:00
Isaac Connor 44f32f46b7 deprecate zmdbFetchOne in favor of zmDbRow 2016-04-20 11:56:58 -04:00
Isaac Connor 1504b368db Warning to Debug for Storage class with no Id 2016-01-04 15:21:23 -05:00
Isaac Connor 916cfe5ee6 change method from getPath to Path 2015-12-15 12:10:07 -05:00
Isaac Connor 1151fe39ab More debug lines, and use the default config.events_dir path when not specified otherwise 2015-12-15 11:17:32 -05:00
Isaac Connor 6aadd7330a make loading a null or invalid storage area not be fatal, but use the default path 2015-12-15 09:39:29 -05:00
Isaac Connor 14cde582cf Merge branch 'multi-server' into multiserverplusstorage
Conflicts:
	src/zm_monitor.h
2015-12-14 16:55:26 -05:00
Isaac Connor e5ca01b8b1 More rough-in 2013-12-16 10:49:51 -05:00
Isaac Connor a02744bf2a rough in the storage object 2013-12-13 13:27:07 -05:00