osquery-1/osquery/ev2/subscription.cpp
Filipe Manco 438a6e1464 Basic ev2 framework (#5401)
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
2019-01-29 09:30:20 -08:00

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