Skip to content

Commit

Permalink
[API] Restored resetlogfa(..) in udt.h.
Browse files Browse the repository at this point in the history
Reverting #2558, although udt.h is not the official SRT API.
  • Loading branch information
maxsharabayko committed Dec 20, 2022
1 parent 87de405 commit c0d9fcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion srtcore/api.cpp
Expand Up @@ -4477,7 +4477,7 @@ void dellogfa(LogFA fa)
srt_logger_config.enabled_fa.set(fa, false);
}

void resetlogfa(const set<LogFA>& fas)
void resetlogfa(set<LogFA> fas)
{
ScopedLock gg(srt_logger_config.mutex);
for (int i = 0; i <= SRT_LOGFA_LASTNONE; ++i)
Expand Down
2 changes: 1 addition & 1 deletion srtcore/udt.h
Expand Up @@ -235,7 +235,7 @@ namespace srt
SRT_API void setloglevel(srt_logging::LogLevel::type ll);
SRT_API void addlogfa(srt_logging::LogFA fa);
SRT_API void dellogfa(srt_logging::LogFA fa);
SRT_API void resetlogfa(const std::set<srt_logging::LogFA>& fas);
SRT_API void resetlogfa(std::set<srt_logging::LogFA> fas);
SRT_API void resetlogfa(const int* fara, size_t fara_size);
SRT_API void setlogstream(std::ostream& stream);
SRT_API void setloghandler(void* opaque, SRT_LOG_HANDLER_FN* handler);
Expand Down

0 comments on commit c0d9fcd

Please sign in to comment.