/*** Copyright (c), The Regents of the University of California *** *** For more information please refer to files in the COPYRIGHT directory ***/ /** * @file examplesMS.c * * @brief Manage a list of keyword-value pair examples. * * Properties can be used to store metadata extracted from a file or * database, or to build up a list of options to control how a * microservice prcesses data. * * @author David R. Nadeau / University of California, San Diego */ #include "rsApiHandler.h" #include "examplesMS.h" /** * Create a new empty property list. * * @param[out] listParam the returned new property list * @param[in,out] rei the rule execution information * @return the status code, 0 on success */ int msiHello( msParam_t *name, msParam_t *outParam, ruleExecInfo_t *rei ) { char *tmpPtr; char outStr[MAX_NAME_LEN]; RE_TEST_MACRO( " Calling msiHello" ); tmpPtr = parseMspForStr (name); if (tmpPtr == NULL) { rodsLog (LOG_ERROR, "msiHello: missing name input"); rei->status = USER__NULL_INPUT_ERR; return USER__NULL_INPUT_ERR; } snprintf (outStr, MAX_NAME_LEN, "Hello world from %s", tmpPtr); fillStrInMsParam (outParam, outStr); rei->status = 0; return 0; }