-
Notifications
You must be signed in to change notification settings - Fork 851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High level logger FA definitions #1440
High level logger FA definitions #1440
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please provide a description of what this PR adds to guide the review process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Script
generate-logging-defs.tcl
usage help or guidelines seem to be missing. - The script generates also
apps/logsupport_appdefs.cpp
file. I understand the reason. But it is just a bit different area: library and application. At least it should be an option whether to generate that file or not. Maybe SRT API should provide the list of FAs not as a set of definitions, but also as a list? - Print the list of FAs in
srt-live-transmit
. - Extra blank lines (see inline code comment).
apps/logsupport_appdefs.cpp
Outdated
|
||
|
||
/* | ||
* SRT - Secure, Reliable, Transport |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These extra blank lines could be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sadly, quite a big part of the code in the script is to deal with spaces and indents. And it continues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it is too hard to delete - no problem. Let it stay.
docs/Developers.md
Outdated
@@ -96,6 +97,90 @@ The SRT installation has the following folders: | |||
* *test - unit tests for the library. | |||
* *testing - the folder contains applications used during development: `srt-test-live`, `srt-test-file`, etc. Use `-DENABLE_TESTING=ON` to include in the build. | |||
|
|||
## Rules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Rules | |
## Coding Rules |
docs/Developers.md
Outdated
@@ -6,6 +6,7 @@ | |||
* [Building SRT](#building-srt) | |||
* [Project Structure](#project-structure) | |||
* [Coding Rules](#rules) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* [Coding Rules](#rules) | |
* [Coding Rules](#coding-rules) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was yours! :D
Ok, I'll fix the target stub section as well.
docs/Developers.md
Outdated
@@ -6,6 +6,7 @@ | |||
* [Building SRT](#building-srt) | |||
* [Project Structure](#project-structure) | |||
* [Coding Rules](#rules) | |||
* [Generated files](#generated-files) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather move it to the very end of the document as it is a very rare case that someone (especially external) would use those scripts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, of course.
docs/Developers.md
Outdated
|
||
* `srtcore/logger_default.cpp`: contains setting of all FA as enabled | ||
* `srtcore/logger_defs.h` and `srtcore/logger_defs.cpp`: declares/defiones logger objects | ||
* `apps/logsupport_appdefs.cpp`: Provides string-to-symbol bindings for the applications |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot the srt.inc.h
.
docs/Developers.md
Outdated
Currently generated files are: | ||
|
||
* `srtcore/logger_default.cpp`: contains setting of all FA as enabled | ||
* `srtcore/logger_defs.h` and `srtcore/logger_defs.cpp`: declares/defiones logger objects |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defines
This replaces the dispersed definitions of the defined logging functional areas by:
The "central definition" is in the
scripts/generate-logging-defs.tcl
together with:srtcore/logger_defs.h
- provides declarations of loggers and header for default configsrtcore/logger_defs.cpp
- provides definitions of loggerssrtcore/logger_defaults.cpp
- provides default configuration of the loggers to make them all setapps/logsupport_appdefs.cpp
- provides name-to-symbol bindings for applicationsThe only exception is in
srt.h
because this is an API file, so generation of an API file wasn't considered user friendly.Changes in the FA definitions now require only:
loggers
list ingenerate-logging-defs.tcl
filegenerate-logging-defs.tcl
scriptsrt.inc.h
file intosrt.h
in the right location.