family.c | family.c | |||
---|---|---|---|---|
skipping to change at line 55 | skipping to change at line 55 | |||
*/ | */ | |||
#ifdef HAVE_CONFIG_H | #ifdef HAVE_CONFIG_H | |||
#include <config.h> | #include <config.h> | |||
#endif | #endif | |||
#include <seap.h> | #include <seap.h> | |||
#include <string.h> | #include <string.h> | |||
#include <probe-api.h> | #include <probe-api.h> | |||
int probe_main(SEXP_t *probe_in, SEXP_t *probe_out, void *arg, SEXP_t *filt ers) | int probe_main(probe_ctx *ctx, void *arg) | |||
{ | { | |||
SEXP_t *item; | SEXP_t *item; | |||
(void)arg; | (void)arg; | |||
(void)filters; | ||||
const char *family = | const char *family = | |||
#if defined(_WIN32) | #if defined(_WIN32) | |||
"windows"; | "windows"; | |||
#elif defined(Macintosh) || defined(macintosh) || (defined(__APPLE__) && de fined(__MACH__)) | #elif defined(Macintosh) || defined(macintosh) || (defined(__APPLE__) && de fined(__MACH__)) | |||
"macos"; | "macos"; | |||
#elif defined(__unix__) || defined(__unix) | #elif defined(__unix__) || defined(__unix) | |||
"unix"; | "unix"; | |||
#elif defined(CISCO_IOS) /* XXX: how to detect IOS? */ | #elif defined(CISCO_IOS) /* XXX: how to detect IOS? */ | |||
"ios"; | "ios"; | |||
#else | #else | |||
"error"; | "error"; | |||
#endif | #endif | |||
if (probe_in == NULL || probe_out == NULL) { | ||||
return PROBE_EINVAL; | ||||
} | ||||
item = probe_item_create(OVAL_INDEPENDENT_FAMILY, NULL, | item = probe_item_create(OVAL_INDEPENDENT_FAMILY, NULL, | |||
"family", OVAL_DATATYPE_STRING, family, | "family", OVAL_DATATYPE_STRING, family, | |||
NULL); | NULL); | |||
probe_cobj_add_item(probe_out, item); | probe_item_collect(ctx, item); | |||
SEXP_free (item); | ||||
return (0); | return (0); | |||
} | } | |||
End of changes. 4 change blocks. | ||||
8 lines changed or deleted | 2 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |