Lines Matching defs:parameter
47 * smlDelParam - Delete a parameter from a tag object
56 * smlGetParam - Get a parameter from a tag
57 * smlGetParamF - Get a formatted parameter from a tag
58 * smlGetParamByTag - Get a parameter by tag and index
59 * smlGetParamByTagParam Get parameter given tag name, index,
60 * parameter name, and value
61 * smlGetParamName - Get the name of a tag parameter given its index
62 * smlGetParam_r - Get a parameter from a tag into fixed buffer
65 * smlGetTagByTagParam - Get element given tag name, index, parameter name,
70 * smlParamEq - Determine if parameter is equal to a specified value
71 * smlParamEqF - Determine if parameter is equal to a specified value
77 * smlSetParam - Set parameter value in tag object
78 * smlSetParamF - Set parameter value in tag object
364 * Description: Get a parameter from a tag into a buffer of fixed size
366 * The tag object to obtain the parameter from
368 * Name of the parameter to retrieve
412 /* scan tag object looking for specified parameter */
426 /* parameter not found - return */
431 * Description: Get a parameter from a tag
433 * The tag object to obtain the parameter from
435 * Name of the parameter to retrieve
437 * Value of the specified parameter
438 * == (char *)NULL if the parameter does not exist
439 * NOTE: Any parameter returned is placed in new storage for the
441 * of the storage once the parameter is no longer needed.
475 /* scan tag object looking for specified parameter */
488 /* parameter not found - return NULL */
495 * Description: Get the name of a tag parameter given its index
497 * The tag object to obtain the parameter name from
499 * Index of parameter name to return
501 * Name of 'index'th parameter
502 * == (char *)NULL if no such parameter exists in tag
503 * NOTE: Any parameter name returned is placed in new storage for the
505 * of the storage once the parameter name is no longer needed.
534 /* index within range - return parameter name */
547 * Synopsis: Get a parameter value from a tag by name and index
548 * Description: Call to look for a parameter value from a tag with
549 * a given name with a parameter of a given name
551 * The tag object to obtain the parameter
557 * Name of parameter to return value of
559 * == (char *)NULL - no parameter value set
560 * != (char *)NULL - value of parameter set
594 * Synopsis: Get element given tag name, index, parameter name, and value
595 * Description: Call to look for a tag with a given nae, that has a parameter
609 * a parameter 'name' with value specified
638 * -> search tag parameters; if parameter name == "paramName"
639 * -> if parameter value != "paramValue"; to next tag
640 * -> if parameter value == "paramValue":
646 int pi; /* parameter structure index */
654 /* element matches: search for specified parameter name/value */
660 /* if parameter name doesnt match to next parameter */
666 /* if parameter value doesnt match to next tag */
699 * Synopsis: Get parameter given tag name, index, parameter name, and value
700 * Description: Call to return the value of a parameter from a tag of a
701 * given name, with a parameter of a given name with a
716 * The value of parameter 'paramReturn' from the
718 * a parameter 'name' with value specified
719 * == (char *)NULL if no such parameter exists
749 * -> search tag parameters; if parameter name == "paramName"
750 * -> if parameter value != "paramValue"; to next tag
751 * -> if parameter value == "paramValue":
757 int pi; /* parameter structure index */
765 /* element matches: search for specified parameter name/value */
771 /* if parameter name doesnt match to next parameter */
777 /* if parameter value doesnt match to next tag */
795 * -> return parameter requested
1208 * Description: Delete a parameter from a tag object
1210 * The tag object to delete the parameter from
1212 * The parameter to delete from the tag object
1214 * If the parameter exists, it is deleted from the tag
1244 /* search the tag for the parameter */
1252 /* if the parameter was not found, nothing to delete */
1261 /* parameter found - indicate deleted */
1270 /* free up storage fro parameter */
1275 /* if not at end, compact parameter storage */
1282 /* one less parameter object in tag */
1287 * If only one parameter left, then delete entire parameter storage,
1304 * Description: Set formatted parameter value in tag object
1306 * The tag object to set the parameter in
1308 * The parameter to add to the tag object
1310 * printf-style format to create parameter value from
1314 * The parameter value is set in the tag object
1336 /* determine size of the parameter name in bytes */
1349 /* generate the parameter name and store it in the allocated storage */
1358 /* add the parameter to the tag */
1369 * Description: Get a format-generated parameter from a tag
1371 * The tag object to obtain the parameter from
1373 * printf-style format for parameter name to be
1378 * Value of the specified parameter
1379 * == (char *)NULL if the parameter does not exist
1380 * NOTE: Any parameter returned is placed in new storage for the
1382 * of the storage once the parameter is no longer needed.
1401 /* determine size of the parameter name in bytes */
1414 /* generate the parameter name and store it in the allocated storage */
1423 /* add the parameter to the tag */
1436 * Description: Set parameter value in tag object
1438 * The tag object to set the parameter in
1440 * The parameter to add to the tag object
1442 * The value of the parameter to set in the tag object
1444 * The parameter value is set in the tag object
1450 SML_PARAM *parameter;
1464 /* if parameters exist, see if modifying existing parameter */
1478 /* found parameter - if value is same, leave alone */
1498 /* not modifying existing - add new parameter */
1503 parameter = (SML_PARAM *)calloc(1, sizeof (SML_PARAM));
1504 bzero(parameter, sizeof (SML_PARAM));
1505 parameter->name = strdup(name);
1506 parameter->value = strdup(value);
1511 (void) memcpy(&(tag->params[tag->params_num - 1]), parameter,
1513 free(parameter);
1518 * Description: Determine if parameter is equal to a specified formatted value
1520 * The tag object to look for the parameter to compare
1522 * Tag within tag object to look for the parameter in
1527 * parameter value
1530 * generate the value to compare parameter with
1532 * B_TRUE - the parameter exists and matches given value
1533 * B_FALSE - parameter does not exist or does not match
1552 /* determine size of the parameter value in bytes */
1565 /* generate the parameter value and store it in the allocated storage */
1574 /* add the parameter to the tag */
1587 * Description: Determine if parameter is equal to a specified value
1589 * The tag object to look for the parameter to compare
1591 * Tag within tag object to look for the parameter in
1595 * Value to compare parameter with
1597 * B_TRUE - the parameter exists and matches given value
1598 * B_FALSE - parameter does not exist or does not match
1622 /* look for the specified parameter - if not found, return false */
1629 /* parameter found - compare against given value */
1633 /* free up parameter storage */
2731 SML_PARAM *parameter;
2733 /* pass spaces before parameter name */
2737 /* get next character of parameter name */
2744 /* EOF inside parameter name? */
2756 /* if separator/end of line tag parameter collected */
2762 /* see if illegal character in parameter name */
2823 /* input parameter name */
2831 /* EOF inside of parameter name? */
2870 /* is the parameter name empty? If so that's an error */
2881 /* have a parameter name */
2886 /* duplicate (save) parameter name */
2910 /* input parameter value */
2918 /* EOF inside of parameter value? */
2931 /* close of parameter value? */
2967 parameter = (SML_PARAM *)calloc(1, sizeof (SML_PARAM));
2968 bzero(parameter, sizeof (SML_PARAM));
2969 parameter->name = pname;
2970 parameter->value = pvalue;
2975 (void) memcpy(&(tag->params[tag->params_num - 1]), parameter,
2978 free(parameter);
3013 * Description: XML Encode a plain text parameter value and write to datastream
3015 * Handle to datastream to write parameter value to
3039 /* write the xml encoded parameter value to the datastream */