0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-08 03:28:40 +02:00
Commit graph

3349 commits

Author SHA1 Message Date
Jason Volk f1e3a9c53b ircd:Ⓜ️:keys: Add mass fetcher to interface. 2019-07-22 20:35:41 -07:00
Jason Volk eb38a9ce15 ircd:Ⓜ️:room::timeline: Improve iteration. 2019-07-22 19:10:19 -07:00
Jason Volk 4a37152c6d ircd:Ⓜ️:fetch: Add clear() to interface. 2019-07-22 14:20:21 -07:00
Jason Volk 53e7fe3fef ircd:Ⓜ️:fetch: Remove cruft. 2019-07-22 14:18:13 -07:00
Jason Volk b17b508c2a ircd:Ⓜ️:room::origins: Add interface to count room servers online/error. 2019-07-21 19:08:40 -07:00
Jason Volk 6c9dbdbef5 ircd::ctx: Add queued(ctx) state to interface. 2019-07-21 18:07:26 -07:00
Jason Volk 471c08a41e ircd::ctx: Split exception_handler w/ cxxabi header requirement. 2019-07-21 15:29:16 -07:00
Jason Volk bcec03ce1a ircd:Ⓜ️:vm::eval: Add find_pdu() to interface. 2019-07-20 18:42:15 -07:00
Jason Volk 3051e6da83 ircd: Isolate inclusion of sys/time.h. 2019-07-20 18:42:15 -07:00
Jason Volk e1356fb50d ircd:Ⓜ️:event::auth: Add hookdata::find() to improve initialization. 2019-07-20 18:42:15 -07:00
Jason Volk 9e2e20f3e8 ircd:Ⓜ️:event::auth: Preliminary auth hook. 2019-07-20 18:42:15 -07:00
Jason Volk 95001450c5 ircd::db: Move some internal headers out of the installed includedir. 2019-07-20 18:42:15 -07:00
Jason Volk 556d73d96e ircd::db::database::env::state: Restrict object semantics. 2019-07-20 18:42:15 -07:00
Jason Volk 2f2bc867fb ircd: Improve various context names for consistency. 2019-07-20 18:42:15 -07:00
Jason Volk f64f41775d ircd::ctx::future: Fix action. 2019-07-19 18:17:53 -07:00
Jason Volk 58b286e651 ircd::log: Make the level enumeration strictly unsigned.
modules/console: Fix sign v. unsign comparison.
2019-07-19 18:17:52 -07:00
Jason Volk 0704625401 ircd::log: Simplify log class member interface. 2019-07-19 17:15:47 -07:00
Jason Volk 064f0b712c ircd::log: Fixes for clang DCE. 2019-07-19 17:10:35 -07:00
Jason Volk fd504be82c ircd: De-inline the now()/time() samplers; minor cleanup. 2019-07-19 16:13:11 -07:00
Jason Volk 166236dfe8 ircd::ctx: Update README [skip ci] 2019-07-19 15:15:21 -07:00
Jason Volk 3301ed62f7 ircd::ctx: Fix future wait condition closing. 2019-07-19 14:46:57 -07:00
Jason Volk 51e3d7f081 ircd::ctx: Minor code-clarify/cleanup. 2019-07-19 14:42:46 -07:00
Jason Volk c9745570fc ircd:Ⓜ️ Add internal(room) to interface. 2019-07-19 14:27:57 -07:00
Jason Volk e57561e8c1 ircd:Ⓜ️ Add type(room) to interface. 2019-07-19 14:27:57 -07:00
Jason Volk bdc88e6c7e imrcd:Ⓜ️:room::members: Add empty() to interface. 2019-07-19 14:27:57 -07:00
Jason Volk ad1940d614 ircd::db::env: Add NowNanos() override. 2019-07-17 19:11:43 -07:00
Jason Volk 48468a32f0 ircd::ctx: Add critical_assertion for when_() templates. 2019-07-17 18:10:34 -07:00
Jason Volk 82ed7ad69b ircd::mods: Attempt to unconfuse backtraces. 2019-07-17 15:05:34 -07:00
Jason Volk 2b4c7a3646 ircd: Remove stale comment from stdinc. 2019-07-17 14:53:13 -07:00
Jason Volk ad834bfc5b ircd:Ⓜ️:vm: Reorganize eval/vm::inject for room version differences; add comment. 2019-07-17 14:53:13 -07:00
Jason Volk e0e9e09e67 ircd:Ⓜ️ Make append() return and propagate boolean. 2019-07-16 15:26:15 -07:00
Jason Volk ef1f6f2642 ircd:Ⓜ️ Move event/append header. 2019-07-16 12:39:16 -07:00
Jason Volk 1c00399f66 ircd:Ⓜ️ Add interface to test if event is redacted. 2019-07-16 10:48:35 -07:00
Jason Volk 13830061a3 ircd:Ⓜ️:event::refs: Add overload to check if ref type exists. 2019-07-16 10:27:53 -07:00
Jason Volk 2bcfe14822 ircd::ios: Add a handler epoch counter. 2019-07-15 17:20:47 -07:00
Jason Volk ebbc5a5be0 ircd::ios: Apply noexcept to handler border functions. 2019-07-15 17:20:47 -07:00
Jason Volk 598585a431 ircd::ctx: Simplify concurrent template.
modules/client/sync: Improve concurrent instantiation sites.
2019-07-15 13:09:33 -07:00
Jason Volk 4d8d2a4dd7 ircd::json: Improve and inline value comparison operators. 2019-07-15 11:06:01 -07:00
Jason Volk 0344a12b40 ircd::json: Inline value constructors. 2019-07-15 11:06:01 -07:00
Jason Volk 1c01b21720 ircd::util: Add unit and deinline various date/time util. 2019-07-15 09:47:34 -07:00
Jason Volk 2a8162b2b7 ircd::net::hostport: Remove unique symbol. 2019-07-14 19:35:28 -07:00
Jason Volk 5242432e0c ircd::ctx: Add concurrent_for_each. 2019-07-14 13:40:04 -07:00
Jason Volk 91af1a17fd ircd::server: Add timestamp of when link's socket was estab. 2019-07-14 12:19:31 -07:00
Jason Volk ee341f193d ircd::stats: Converge on a single callpath to get val. 2019-07-14 11:17:53 -07:00
Jason Volk c7a68a8cb3 ircd::ctx: Fix ctx::parallel argument allocation assumptions.
ircd::ctx: Rename tool.
2019-07-13 23:20:03 -07:00
Jason Volk df8fd36fde ircd:Ⓜ️:user: Simplify user::room_tags impl w/ modern linkage.
ircd:Ⓜ️:user: Simplify user::room_account_data impl w/ modern linkage.

ircd:Ⓜ️:user: Modernize user::profile impl linkage.

ircd:Ⓜ️:user: Modernize user::account_data impl linkage.

ircd:Ⓜ️:user: Simplify user::ignores impl w/ modern linkage.
2019-07-13 18:15:27 -07:00
Jason Volk 6e97a72c50 ircd::ctx::ole: Minor interface reorg. 2019-07-13 18:15:27 -07:00
Jason Volk 1af930d541 Fix target inputs order in include/Makefile. 2019-07-13 15:51:55 -07:00
Jason Volk 2aafbaff5c configure: Fix includedir and install path related. 2019-07-12 19:29:51 -07:00
Jason Volk d0cc5b020b ircd::fs: Minor reorg of fadvise related. 2019-07-12 19:29:51 -07:00
Jason Volk 212e4abb55 ircd:Ⓜ️:fed: Add /v2/invite request support. 2019-07-12 19:29:51 -07:00
Jason Volk ce55859fb2 ircd:Ⓜ️ Rename v1 to fed. 2019-07-12 19:29:51 -07:00
Jason Volk 2d7a914eb2 ircd:Ⓜ️:event: Fix detection on hashing constructor. 2019-07-11 19:22:35 -07:00
Jason Volk 59467cf670 ircd::util: Add minmax(). 2019-07-11 18:58:17 -07:00
Jason Volk 4947ef10f5 ircd:Ⓜ️:room: Add missing linear event::idx get(). 2019-07-11 18:58:17 -07:00
Jason Volk dcffd35c40 ircd: Use buffer::copy() here. 2019-07-11 18:58:17 -07:00
Jason Volk c4e5d06d91 ircd:Ⓜ️:error: Improve construction stack. 2019-07-11 17:22:16 -07:00
Jason Volk ae071552fb ircd::ctx::ole: Add options structure; minor cleanup. 2019-07-11 15:51:09 -07:00
Jason Volk de94e95422 ircd: Split out overgrown components from stringops.h 2019-07-11 15:51:09 -07:00
Jason Volk d53744b3f8 ircd: Rename gmatch/gequals. 2019-07-11 15:51:09 -07:00
Jason Volk 0f4d1e2869 ircd::net::socket: Convert totals counters to stats::items. 2019-07-11 15:51:09 -07:00
Jason Volk 7fdf87a21f ircd:Ⓜ️:user: Combine user.h and user/user.h like other directories. 2019-07-11 15:51:09 -07:00
Jason Volk 6032331bf2 ircd:Ⓜ️ Move breadcrumb_rooms interface down one out from m::user::. 2019-07-11 15:51:09 -07:00
Jason Volk 808148e326 ircd::buffer: Add buffer overlap util;
ircd::buffer: Assert on overlap.

ircd::buffer: Add operator+=.

irde::buffer: More aggressive inlining.
2019-07-11 15:51:08 -07:00
Jason Volk c0402f08f4 ircd::util: Improve the test trigger prototype. 2019-07-10 21:39:47 -07:00
Jason Volk c39aad4d3f ircd:Ⓜ️:vm: Factor room_version into eval. 2019-07-10 06:52:56 -07:00
Jason Volk 329972ed01 ircd:Ⓜ️:event: Update the make_id() suite. 2019-07-10 03:50:37 -07:00
Jason Volk b7fc4710eb ircd:Ⓜ️:event::conforms: Add event_id hash check to static conformity checks. 2019-07-10 03:50:37 -07:00
Jason Volk 43d66420cd Update incompatible uses of event_id. 2019-07-10 03:50:37 -07:00
Jason Volk 639b132250 ircd:Ⓜ️ Add a check_id(event) suite. 2019-07-10 02:12:16 -07:00
Jason Volk 0a210544b3 ircd:Ⓜ️:event::conforms: Remove MISTMATCH_ORIGIN_EVENT_ID code. 2019-07-09 23:46:24 -07:00
Jason Volk 2755cfe71b ircd:Ⓜ️🆔 Improve the validation interface / stack. 2019-07-09 02:33:27 -07:00
Jason Volk 719a965d9f ircd:Ⓜ️:event: Remove prev_state from top level. 2019-07-09 02:33:27 -07:00
Jason Volk fc8048dc74 ircd::event: Remove membership from top level. 2019-07-09 02:03:03 -07:00
Jason Volk e0655229c5 ircd::room::auth: Improve make_refs and cleanup interface related. 2019-07-09 02:03:03 -07:00
Jason Volk d37aaa8542 ircd::assert: Only #error for include-order in --enable-debug mode. 2019-07-08 16:49:43 -07:00
Jason Volk d5c035693c ircd:Ⓜ️:user: Add interface to im.vector.riot.breadcrumb_rooms. 2019-07-08 06:03:20 -07:00
Jason Volk 93b82445d9 ircd:Ⓜ️:fetch: Fix initialization.
ircd:Ⓜ️:event::fetch: Fix member statekeeping.
2019-07-08 06:03:20 -07:00
Jason Volk 015cbe53b1 ircd::net::socket: Add static counters for totals. 2019-07-08 06:03:20 -07:00
Jason Volk 11dd47a8aa ircd:Ⓜ️:sync: Add pointer to struct args in struct data. 2019-07-08 06:03:20 -07:00
Jason Volk 3057e9a328 ircd:Ⓜ️ Move event/get.h down one level. 2019-07-07 22:06:11 -07:00
Jason Volk 439402c08c ircd:Ⓜ️ Add an m::query() template suite for DRY'ing common m::get() usage pattern. 2019-07-07 17:58:15 -07:00
Jason Volk ec8bac81d1 ircd:Ⓜ️:filter: Add missing fields on room_event_filter. 2019-07-07 17:00:36 -07:00
Jason Volk 49264bd13b ircd:Ⓜ️:sync: Add sync item children counter. 2019-07-06 22:25:16 -07:00
Jason Volk 18f07b6378 ircd:Ⓜ️:sync: Move definitions to module.
ircd:Ⓜ️:sync: Give sync::data an instance_list.
2019-07-06 22:25:12 -07:00
Jason Volk dc4d13bca6 ircd:Ⓜ️:event::fetch: Add internal buffer for event::id state. 2019-07-05 23:45:00 -07:00
Jason Volk 261151f539 ircd:Ⓜ️:fetch: Remove ambiguating event_id() util. 2019-07-05 23:45:00 -07:00
Jason Volk 4a289c065a ircd:Ⓜ️:event: Add event_id member; reorg ctors. 2019-07-05 23:45:00 -07:00
Jason Volk 31aea230b1 ircd::conf: Explicit bool operators for std::string item. 2019-07-05 18:07:49 -07:00
Jason Volk 7af8e5774c ircd::ios: Add no-op synchronous defer overload; use w/ this_ctx::yield(). 2019-07-05 17:37:04 -07:00
Jason Volk b8dfa9ccee ircd::magick: Reorg and elaborate the job state tracking; add interface. 2019-07-05 16:05:36 -07:00
Jason Volk 612eeb3b7f ircd::allocator: Add ctrl get()/set() w/ console cmd. 2019-07-04 00:20:49 -07:00
Jason Volk e7b66eac3b ircd:Ⓜ️:event::prev: Stronger json::object type for v1 tuple value at indice. 2019-07-03 18:57:48 -07:00
Jason Volk 5d570a8da4 ircd:Ⓜ️🆔 Move event fwddecl closer to use; add more comments on v3/v4 objects. 2019-07-03 18:57:48 -07:00
Jason Volk 6a6c51d359 ircd::allocator: Distill out GNU malloc featurette from allocator.cc unit. 2019-07-03 18:57:48 -07:00
Jason Volk ea0a1df3a1 configure: Add options for third-party allocator selection/deselection and inclusion. 2019-07-03 18:02:54 -07:00
Jason Volk f88cc51e37 ircd: Move definitions for various valgrind suites to vg.cc for header isolation. 2019-07-03 15:14:29 -07:00
Jason Volk 60fda46bdf ircd::http: Consolidate line terminator static strings. 2019-06-28 18:23:43 -07:00
Jason Volk 9ca019f03e ircd:Ⓜ️🆔:event: Add non-throwing static tests of v3/v4 id from string. 2019-06-28 03:42:07 -07:00
Jason Volk 6c62515a6d ircd:Ⓜ️🆔 Use proper reference hashing procedure for event::v3/event::v4 ctors. 2019-06-27 20:06:26 -07:00
Jason Volk 6ce67a81a1 ircd:Ⓜ️:user::highlight: Add conf items to toggle counting; improve match detail. 2019-06-27 01:59:19 -07:00
Jason Volk 0fb3f1d8ac ircd:Ⓜ️:user: Modernize the highlight counting interface. 2019-06-27 01:32:16 -07:00
Jason Volk 7843925335 modules: Disperse modules to eliminate the s_ prefix-space. 2019-06-27 00:41:57 -07:00
Jason Volk ed5af1fdbd ircd:Ⓜ️🆔 Add class representations for event::v3 and event::v4. 2019-06-26 06:21:30 -07:00
Jason Volk fcfc28c6e4 ircd:Ⓜ️🆔 Add event::id version gauge method. 2019-06-26 06:21:30 -07:00
Jason Volk 5500a897e9 ircd: Add RFC4648 base64url conversion suite. 2019-06-26 01:52:42 -07:00
Jason Volk 19b85ef908 ircd: Add mutable_buffer based replace_copy stringop. 2019-06-26 01:44:23 -07:00
Jason Volk 5c03f4e08f ircd: Add mutable_buffer inplace replace to stringops. 2019-06-26 01:16:27 -07:00
Jason Volk 754adf33ec ircd:Ⓜ️:keys: Add pretty()/pretty_oneline() output diagnostics. 2019-06-25 07:42:13 -07:00
Jason Volk 758ee9c185 ircd:Ⓜ️:keys: Retype server_name property as json::string. 2019-06-25 07:13:10 -07:00
Jason Volk 425f277eaa ircd: Fix main thread assertion. 2019-06-24 03:55:11 -07:00
Jason Volk 80655da66e Misc fixes for clang. 2019-06-24 01:34:14 -07:00
Jason Volk cbd2f6f4c7 ircd::prof: Add extern keyword for c89 semantics via gnu_inline in clang for odr. 2019-06-24 01:33:41 -07:00
Jason Volk 83dd5581be ircd:Ⓜ️ Workaround comparison operator resolution and others for clang. 2019-06-24 02:22:55 -06:00
Jason Volk 9d48215aaa ircd: Explicit instance_list destructor template instantiations for clang. 2019-06-24 01:33:00 -06:00
Jason Volk 37760fe251 ircd:Ⓜ️:keys: Improve key query and cache loop. 2019-06-23 16:27:37 -07:00
Jason Volk c2f86a8094 ircd:Ⓜ️:keys: Distill out expiration test from verification test. 2019-06-23 16:22:15 -07:00
Jason Volk fcbd31f672 ircd:Ⓜ️:keys: Add an iteration over node's cached keys. 2019-06-23 15:50:02 -07:00
Jason Volk cf3b1218c4 ircd: Misc fixes for clang. 2019-06-23 16:22:06 -06:00
Jason Volk 2e7f272570 ircd: Add plain string terminate. 2019-06-23 16:16:39 -06:00
Jason Volk 82a7d736d1 ircd::fs::path: Use scoped enum for fs::path::base paths. 2019-06-23 07:37:23 -06:00
Jason Volk f85398392f ircd: Tentative fix assert macro missing on clang. 2019-06-23 07:37:23 -06:00
Jason Volk 805f2c1184 ircd:Ⓜ️:user: Tentative fixes for clang rejection of std::string_view::size() constexprness. 2019-06-23 07:37:23 -06:00
Jason Volk 5bf62fc33f ircd: Degrade enum addressing for clang. 2019-06-23 07:37:23 -06:00
Jason Volk fa7b708e03 ircd::util: Fix inline namespace reopening for clang. 2019-06-23 07:37:23 -06:00
Jason Volk ab32ef76d7 ircd::ctx::this_ctx: Fix inline namespace reopening for clang. 2019-06-23 07:37:23 -06:00
Jason Volk 801f0d57b7 ircd: Fix attributes for clang. 2019-06-23 07:37:23 -06:00
Jason Volk e4a5a755d0 ircd::base: Fix lack of constexpr ceil(). 2019-06-23 01:27:49 -06:00
Jason Volk 35cff6c498 include/ircd: Handle *.gch.tmp files from clang. 2019-06-23 01:27:49 -06:00
Jason Volk 53ea7b8658 ircd:Ⓜ️:feds: Add send operation to feds suite.
modules/console: Update console for feds resend.
2019-06-22 20:03:58 -07:00
Jason Volk a371bc3e1f ircd: Fix cast-conversion based reference-constructions. 2019-06-22 17:36:42 -06:00
Jason Volk 7aaee4c68d ircd: Mark recommended noexcept on inline constructors. 2019-06-22 17:36:42 -06:00
Jason Volk 656ef1572e ircd::buffer::parse_buffer: Remove erroneous cast operator. 2019-06-22 16:58:58 -06:00
Jason Volk a67f134a6b ircd:Ⓜ️ Partial migration of m::node to module; modernize legacy extern "C". 2019-06-21 21:02:38 -07:00
Jason Volk 4093dc2f85 ircd:Ⓜ️:self::init: Fix keys init; prevent libircd as dependency for module. 2019-06-21 20:29:26 -07:00
Jason Volk d17afdd531 ircd::http2: Start an RFC7540 implementation. 2019-06-21 16:54:22 -07:00
Jason Volk b7023a6dc7 ircd:Ⓜ️ Reorg keys related interfaces and init. 2019-06-21 16:41:43 -07:00
Jason Volk 133b2605c6 ircd:Ⓜ️:dbs: Generalize the reflection for M_RELATES event_refs related. 2019-06-21 16:32:15 -07:00
Jason Volk 9cf64712d9 ircd::json::iov: Fix declarations. 2019-06-21 04:31:38 -07:00
Jason Volk f6067edcdf ircd::ctx::async: Fix template default param using runtime extern. 2019-06-21 03:41:13 -07:00
Jason Volk 26efac134e ircd::json: Fix out-of-line definition return type. 2019-06-21 03:41:13 -07:00
Jason Volk 5c8e590219 ircd: Fix default arguments in exception macros for clang. 2019-06-21 03:41:13 -07:00
Jason Volk 95e0ff3bbc ircd::buffer: Use __builtin_unreachable() for clang. 2019-06-21 04:36:53 -06:00
Jason Volk a5a267dcd5 ircd::byte_view: Rearrange class definition order for clang. 2019-06-21 04:36:53 -06:00
Jason Volk a8ebcbcbe0 ircd::allocator: Fix error. 2019-06-21 04:36:53 -06:00
Jason Volk 75c125e8aa ircd:Ⓜ️:rooms: Expose fetcher in interface; internal cleanup. 2019-06-17 23:05:31 -07:00
Jason Volk f24c7c2e82 ircd:Ⓜ️:rooms: Simplify interface. 2019-06-17 16:57:00 -07:00
Jason Volk 4f741960a0 ircd:Ⓜ️:room::state: Reconnect !present() branch with state::history. 2019-06-16 02:18:04 -07:00
Jason Volk 24ce076c3d ircd:Ⓜ️:room::state: Add state::history interface derived from state::space. 2019-06-16 02:17:47 -07:00
Jason Volk b5a61a7a6b ircd:Ⓜ️:room::state::space: Improve interface; fixes. 2019-06-16 01:00:47 -07:00