summaryrefslogtreecommitdiff
path: root/src/utils/sessions.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/sessions.h')
-rw-r--r--src/utils/sessions.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/utils/sessions.h b/src/utils/sessions.h
index d78c303..6107630 100644
--- a/src/utils/sessions.h
+++ b/src/utils/sessions.h
@@ -28,13 +28,11 @@
#include "api/session.h"
//------------------------------------------------------------------------------
-#define NST_PUBLIC __attribute__ ((visibility("default")))
//------------------------------------------------------------------------------
namespace NST
{
namespace utils
{
-
using Session = NST::API::Session;
// Network layer session
@@ -42,16 +40,15 @@ struct NetworkSession : public Session
{
public:
NetworkSession()
- : application {nullptr}
- , direction {Direction::Unknown}
+ : application{nullptr}
+ , direction{Direction::Unknown}
{
}
- void* application; // pointer to application protocol implementation
+ void* application; // pointer to application protocol implementation
Direction direction;
};
-
// Application layer session
struct ApplicationSession : public Session
{
@@ -63,14 +60,10 @@ private:
std::string session_str;
};
-extern "C"
-NST_PUBLIC
-void print_session(std::ostream& out, const Session& session);
-
std::ostream& operator<<(std::ostream& out, const Session& session);
} // namespace utils
} // namespace NST
//------------------------------------------------------------------------------
-#endif//SESSIONS_H
+#endif // SESSIONS_H
//------------------------------------------------------------------------------