mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 09:58:54 +00:00
438a6e1464
Summary: Pull Request resolved: https://github.com/facebook/osquery/pull/5401 Extremely rough implementation of the basic componenets to get things going. Blueprint issue #5158 . Reviewed By: akindyakov Differential Revision: D13779295 fbshipit-source-id: c7373794e8152ffea8a7c5d97f0c937bf97a2a0a
27 lines
630 B
C++
27 lines
630 B
C++
/**
|
|
* Copyright (c) 2018-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed as defined on the LICENSE file found in the
|
|
* root directory of this source tree.
|
|
*/
|
|
|
|
#include <osquery/ev2/subscription.h>
|
|
|
|
namespace osquery {
|
|
namespace ev2 {
|
|
|
|
Subscription::Subscription(std::string subscriber, std::type_index pub_type)
|
|
: subscriber_(std::move(subscriber)), pub_type_(std::move(pub_type)) {}
|
|
|
|
const std::string& Subscription::subscriber() const {
|
|
return subscriber_;
|
|
}
|
|
|
|
const std::type_index& Subscription::pubType() const {
|
|
return pub_type_;
|
|
}
|
|
|
|
} // namespace ev2
|
|
} // namespace osquery
|