/usr/include/openwsman/cpp/WsmanOptions.h is in libwsman-clientpp-dev 2.6.5-0ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | //----------------------------------------------------------------------------
//
// Copyright (C) Red Hat, Inc., 2015.
//
// File: WsmanOptions.h
//
// License: BSD-3-Clause
//
// Contents: A C++ interface for client_opt_t
//
//----------------------------------------------------------------------------
#ifndef __H_WSMAN_OPTIONS_H
#define __H_WSMAN_OPTIONS_H
#include <string>
extern "C" {
#include "wsman-api.h"
}
#include "WsmanFilter.h" // For NameValuePairs
using namespace std;
namespace WsmanClientNamespace {
class WsmanEPR;
class WsmanOptions
{
private:
client_opt_t *options;
WsmanOptions(const WsmanOptions ©);
WsmanOptions &operator=(const WsmanOptions &rhs);
public:
WsmanOptions();
WsmanOptions(unsigned long flags);
~WsmanOptions();
void setNamespace(const char *namespace_);
void setNamespace(const string &namespace_);
void setDeliveryMode(WsmanDeliveryMode delivery_mode);
void setDeliveryURI(const char *delivery_uri);
void setDeliveryURI(const string &delivery_uri);
void setReference(const char *reference);
void setReference(const string &reference);
void setExpires(const float expires);
void setHeartbeatInterval(const float heartbeat_interval);
void addProperty(const char *key, const char *value);
void addProperty(const string &key, const string &value);
void addProperty(const string &key, const WsmanEPR &epr);
void addSelector(const char *key, const char *value);
void addSelector(const string &key, const string &value);
void addSelectors(const NameValuePairs &selectors);
void addSelectors(const NameValuePairs *selectors);
void addFlag(unsigned long flag);
void removeFlag(unsigned long flag);
unsigned long getFlags() const;
client_opt_t *getOptions() const;
operator client_opt_t*() const;
};
}
#endif // __H_WSMAN_OPTIONS_H
|