Skip to content

Commit

Permalink
added stop to public api
Browse files Browse the repository at this point in the history
  • Loading branch information
pathtofile committed May 11, 2021
1 parent 2985c12 commit 7bf8849
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sealighter/sealighter_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ void run_trace(trace<T>* trace)
/*
Stop any running trace
*/
void stop_traces()
void stop_sealighter()
{
if (NULL != g_user_session) {
g_user_session->stop();
Expand All @@ -917,7 +917,7 @@ BOOL WINAPI crl_c_handler
switch (fdwCtrlType)
{
case CTRL_C_EVENT:
stop_traces();
stop_sealighter();
return TRUE;
}
return FALSE;
Expand Down
5 changes: 5 additions & 0 deletions sealighter/sealighter_controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ int run_sealighter
(
std::string config_string
);

/*
* Stop Sealighter
*/
void stop_sealighter();

0 comments on commit 7bf8849

Please sign in to comment.