mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 09:58:54 +00:00
a67525fae1
Summary: Pull Request resolved: https://github.com/facebook/osquery/pull/5375 LICENSE is now defined in a single file on the root of the project, update the header to contain that information. **Project LICENSE did not change.** Reviewed By: akindyakov Differential Revision: D13750575 fbshipit-source-id: 1e608a81b260b8395f9d008fc67f463160c1fc2b
33 lines
817 B
C++
33 lines
817 B
C++
/**
|
|
* Copyright (c) 2014-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.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <osquery/utils/expected/expected.h>
|
|
|
|
#include "osquery/killswitch/killswitch_plugin.h"
|
|
|
|
namespace osquery {
|
|
|
|
/**
|
|
* @brief Interface class for killswitch plugins.
|
|
*/
|
|
class KillswitchRefreshablePlugin : public KillswitchPlugin {
|
|
public:
|
|
Status setUp() override;
|
|
|
|
/// Main entrypoint for killswitch plugin requests
|
|
virtual Status call(const PluginRequest& request,
|
|
PluginResponse& response) override;
|
|
|
|
protected:
|
|
enum class RefreshError { NoContentReached = 1, ParsingError = 2 };
|
|
virtual ExpectedSuccess<RefreshError> refresh() = 0;
|
|
};
|
|
} // namespace osquery
|