aboutsummaryrefslogtreecommitdiff
path: root/src/lib/pubsub
AgeCommit message (Collapse)Author
2021-03-12Update copyrights to 2021, using "make update-copyright"Nick Mathewson
2020-11-12Fix typos.Samanta Navarro
Typos found with codespell. Please keep in mind that this should have impact on actual code and must be carefully evaluated: src/core/or/lttng_circuit.inc - ctf_enum_value("CONTROLER", CIRCUIT_PURPOSE_CONTROLLER) + ctf_enum_value("CONTROLLER", CIRCUIT_PURPOSE_CONTROLLER)
2020-01-08It's 2020. Update the copyright dates with "make update-copyright"Nick Mathewson
2019-12-02Link to mainloop_pubsub.[ch] when describing delivery policiesNick Mathewson
2019-11-16Topic documentation on our publish-subscribe architecture.Nick Mathewson
2019-11-15Doxygen: rename all .dox files to end with .mdNick Mathewson
Using a standard ending here will let other tools that expect markdown understand our output here. This commit was automatically generated with: for fn in $(find src -name '*.dox'); do \ git mv "$fn" "${fn%.dox}.md"; \ done
2019-11-15Doxygen: remove /** and **/ from all .dox filesNick Mathewson
This is an automatically generated commit, made with: find src -name '*.dox' | \ xargs perl -i -ne 'print unless (m#^\s*/?\*\*/?\s*$#);'
2019-11-06Add a bunch of doxygen for things in src/lib.Nick Mathewson
2019-11-04Doxygen: document the rest of the directories in lib.Nick Mathewson
(This copies documentation from doc/HACKING/design, and edits for concisensess and clarity.)
2019-11-04Doxygen: Avoid ambiguity in @dir directivesNick Mathewson
This commit was automatically generated with: find src -name '*.dox' |xargs perl -i -pe 's{\@dir ([^/])}{\@dir /$1};'
2019-11-04Add stub directory-level documentation for most source directoriesNick Mathewson
This includes app, core, feature, lib, and tools, but excludes ext, test, and trunnel. This was generated by the following shell script: cd src for dname in $(find lib core feature app tools -type d |grep -v \\.deps$); do keyword="$(echo "$dname" |sed -e "s/\//_/" )" target="${dname}/${keyword}.dox" echo "$target" cat <<EOF >"$target" /** @dir ${dname} @brief ${dname} **/ EOF git add "$target" done
2019-10-26doxygen: add @file declarations for src/libNick Mathewson
If a file doesn't use the file command (either \file or @file), Doxygen won't try to process it. These declarations also turned up a doxygen warning for crypto_ope.c; I fixed that too.
2019-06-11Merge branch 'tor-github/pr/1040'David Goulet
2019-06-05Run "make autostyle."Nick Mathewson
2019-05-22Multiple subscribers or publishers per subsystemTaylor Yu
Allow a subsystem to register to publish or subscribe a given message from multiple places. Part of ticket 29976.
2019-05-02Add comments to include.am files to note where new sources goNick Mathewson
This mechanism isn't perfect, and sometimes it will guess wrong, but it will help our automation.
2019-03-28Don't unconditionally deref pub and sub in lint_message_consistencyNick Mathewson
This can't actually result in a null pointer dereference, since pub_excl and sub_excl are only set when the corresponding smartlists are nonempty. But coverity isn't smart enough to figure that out, and we shouldn't really be depending on it. Bug 29938; CID 1444257. Bug not in any released Tor.
2019-03-26Remove message/subsystem numbers from log messagesNick Mathewson
Having the numbers in those messages makes some of the unit test unstable, by causing them to depend on the initialization order of the naming objects.
2019-03-25Rename one case of c_type to c_ptr_type.Nick Mathewson
2019-03-25Rename DISPATCH_DEFINE_TYPE() to DISPATCH_REGISTER_TYPE()Nick Mathewson
Also fix a grammar error in a comment.
2019-03-25Various documentation notes and tweaks for pubsubNick Mathewson
2019-03-25Log warning messages _before_ exiting because of earlier dcfg failureNick Mathewson
This helps diagnostics.
2019-03-25practracker compliance: split lint_message into more logical partsNick Mathewson
2019-03-25coverage: Exclude lines in pubsub_pub that can only be reached on bugNick Mathewson
2019-03-25pubsub_check.c: Stop accepting NULL prefix, which we never send.Nick Mathewson
(Our code to handle it was broken, too)
2019-03-25Try a different approach to making publish function seem used.Nick Mathewson
We want the DISPATCH_ADD_PUB() macro to count as making a DECLARE_PUBLISH() invocation "used", so let's try a new approach that preserves that idea. The old one apparently did not work for some versions of osx clang.
2019-03-25move pubsub_connector_t typedef to pubsub_connect.hNick Mathewson
2019-03-25Correct doxygen @file directivesNick Mathewson
2019-03-25Document several issues found by TaylorNick Mathewson
2019-03-25Add msgtypes.h include to pubsub_build.hNick Mathewson
(The header won't compile without it.)
2019-03-25Pubsub: macros for ease-of-use and typesafety.Nick Mathewson
2019-03-25Add function to clear publish bindings.Nick Mathewson
When we clean up, we'd like to clear all the bindings that refer to a dispatch_t, so that they don't have dangling pointers to it.
2019-03-25pubsub: relationship checking functionalityNick Mathewson
This code tries to prevent a large number of possible errors by enforcing different restrictions on the messages that different modules publish and subscribe to. Some of these rules are probably too strict, and some too lax: we should feel free to change them as needed as we move forward and learn more.
2019-03-25Pubsub: an OO layer on top of lib/dispatchNick Mathewson
This "publish/subscribe" layer sits on top of lib/dispatch, and tries to provide more type-safety and cross-checking for the lower-level layer. Even with this commit, we're still not done: more checking will come in the next commit, and a set of usability/typesafety macros will come after.