cfengine  3.15.4
About: CFEngine is a configuration management system for configuring and maintaining Unix-like computers (using an own high level policy language). Community version.
  Fossies Dox: cfengine-3.15.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

cf-serverd-enterprise-stubs.c
Go to the documentation of this file.
1 /*
2  Copyright 2019 Northern.tech AS
3 
4  This file is part of CFEngine 3 - written and maintained by Northern.tech AS.
5 
6  This program is free software; you can redistribute it and/or modify it
7  under the terms of the GNU General Public License as published by the
8  Free Software Foundation; version 3.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
18 
19  To the extent this program is licensed as part of the Enterprise
20  versions of CFEngine, the applicable Commercial Open Source License
21  (COSL) may apply to this file if you as a licensee so wish it. See
22  included file COSL.txt.
23 */
24 
26 
27 #include <server.h>
28 #include <cf-serverd-functions.h>
29 
31  ARG_UNUSED EvalContext *, ctx,
32  ARG_UNUSED const char *, handle,
33  ARG_UNUSED const Promise *, pp)
34 {
35  Log(LOG_LEVEL_VERBOSE, "Access to server literals is only available in CFEngine Enterprise");
36 }
37 
39 {
40  Log(LOG_LEVEL_VERBOSE, "Access to server literals is only available in CFEngine Enterprise");
41  return 0;
42 }
43 
45  ARG_UNUSED char *, bind_address, ARG_UNUSED bool, server_listen,
46  InitServerFunction, InitServerPtr)
47 {
48  if (!server_listen)
49  {
50  Log(LOG_LEVEL_VERBOSE, "Disable listening on port is only supported in CFEngine Enterprise");
51  }
52 
53  return InitServerPtr(queue_size, bind_address);
54 }
55 
57 {
58  return false;
59 }
60 
62 {
63  return false;
64 }
65 
67 {
68  return false;
69 }
70 
72 {
73  return false;
74 }
75 
77  ARG_UNUSED const Promise *, pp)
78 {
79  Log(LOG_LEVEL_ERR, "Report data select is only available in CFEngine Enterprise");
80 }
81 
83 {
84  return;
85 }
86 
88 {
89 }
90 
92 {
93 }
94 
96 {
97  return false;
98 }
99 
101 {
102  return -1;
103 }
104 
106 {
107 }
108 
110 {
111  fprintf(fp,"<name replace-wildcards=\"yes\" >CFEngine Community %s Policy Server on %s </name>\n", Version(), "%h");
112 }
ENTERPRISE_VOID_FUNC_1ARG_DEFINE_STUB(void, Nova_TrackExecution, ARG_UNUSED const char *, input_file)
#define ARG_UNUSED
Definition: cf-net.c:47
void KeepReportDataSelectAccessPromise(const Promise *pp)
bool ReturnQueryData(ServerConnectionState *conn, char *menu, int encrypt)
bool ReceiveCollectCall(ServerConnectionState *conn)
void CollectCallStart(int interval)
void CollectCallStop()
int SetServerListenState(EvalContext *ctx, size_t queue_size, char *bind_address, bool server_listen, InitServerFunction InitServerPtr)
int CollectCallGetPending(int *queue_length)
void CollectCallMarkProcessed()
void FprintAvahiCfengineTag(FILE *fp)
bool CollectCallHasPending()
void CleanReportBookFilterSet()
bool ReturnCookies(ServerConnectionState *conn)
int ReturnLiteralData(EvalContext *ctx, char *handle, char *ret)
void RegisterLiteralServerData(EvalContext *ctx, const char *handle, const Promise *pp)
bool CFTestD_ReturnQueryData(ServerConnectionState *conn, char *menu)
int(* InitServerFunction)(size_t queue_size, char *bind_address)
#define ENTERPRISE_FUNC_1ARG_DEFINE_STUB(__ret, __func, __t1, __p1)
#define ENTERPRISE_FUNC_0ARG_DEFINE_STUB(__ret, __func)
#define ENTERPRISE_VOID_FUNC_0ARG_DEFINE_STUB(__ret, __func)
#define ENTERPRISE_FUNC_3ARG_DEFINE_STUB(__ret, __func, __t1, __p1, __t2, __p2, __t3, __p3)
#define ENTERPRISE_FUNC_5ARG_DEFINE_STUB(__ret, __func, __t1, __p1, __t2, __p2, __t3, __p3, __t4, __p4, __t5, __p5)
#define ENTERPRISE_FUNC_2ARG_DEFINE_STUB(__ret, __func, __t1, __p1, __t2, __p2)
#define ENTERPRISE_VOID_FUNC_3ARG_DEFINE_STUB(__ret, __func, __t1, __p1, __t2, __p2, __t3, __p3)
const char * Version(void)
void Log(LogLevel level, const char *fmt,...)
Definition: logging.c:409
@ LOG_LEVEL_ERR
Definition: logging.h:42
@ LOG_LEVEL_VERBOSE
Definition: logging.h:46