#include <stdio.h>
#include <string.h>
#include <papi.h>
static char *calls[] = {
"papiAttributeListAddValue",
"papiAttributeListAddBoolean", "papiAttributeListAddCollection",
"papiAttributeListAddDatetime", "papiAttributeListAddInteger",
"papiAttributeListAddMetadata", "papiAttributeListAddRange",
"papiAttributeListAddResolution", "papiAttributeListAddString",
"papiAttributeListDelete",
"papiAttributeListGetValue", "papiAttributeListGetNext",
"papiAttributeListFind",
"papiAttributeListGetBoolean", "papiAttributeListGetCollection",
"papiAttributeListGetDatetime", "papiAttributeListGetInteger",
"papiAttributeListGetMetadata", "papiAttributeListGetRange",
"papiAttributeListGetResolution", "papiAttributeListGetString",
"papiAttributeListFromString", "papiAttributeListToString",
"papiAttributeListFree",
"papiJobSubmit", "papiJobSubmitByReference", "papiJobValidate",
"papiJobStreamOpen", "papiJobStreamWrite", "papiJobStreamClose",
"papiJobQuery", "papiJobModify", "papiJobCancel", "papiJobPromote",
"papiJobGetAttributeList", "papiJobGetId", "papiJobGetPrinterName",
"papiJobFree", "papiJobListFree",
"papiJobHold", "papiJobRelease",
"papiPrintersList", "papiPrinterQuery", "papiPrinterModify",
"papiPrinterAdd", "papiPrinterRemove",
"papiPrinterPause", "papiPrinterResume",
"papiPrinterDisable", "papiPrinterEnable",
"papiPrinterPurgeJobs", "papiPrinterListJobs",
"papiPrinterGetAttributeList",
"papiPrinterFree", "papiPrinterListFree",
"papiServiceCreate", "papiServiceDestroy",
"papiServiceGetAppData",
"papiServiceGetEncryption", "papiServiceGetPassword",
"papiServiceGetServiceName", "papiServiceGetUserName",
"papiServiceSetAppData", "papiServiceSetAuthCB",
"papiServiceSetEncryption", "papiServiceSetPassword",
"papiServiceSetUserName",
"papiServiceGetAttributeList", "papiServiceGetStatusMessage",
"papiStatusString",
"papiLibrarySupportedCall", "papiLibrarySupportedCalls",
NULL
};
char **
papiLibrarySupportedCalls()
{
return (calls);
}
char
papiLibrarySupportedCall(const char *name)
{
int i;
for (i = 0; calls[i] != NULL; i++)
if (strcmp(name, calls[i]) == 0)
return (PAPI_TRUE);
return (PAPI_FALSE);
}