rpc_ns_profile_elt_add(3rpc)Adds an element to a profile; if necessary, creates the entry Used by client, server, or management applications. Synopsis #include <dce/rpc.h> void rpc_ns_profile_elt_add( unsigned32 profile_name_syntax, unsigned_char_t *profile_name, rpc_if_id_t *if_id, unsigned32 member_name_syntax, unsigned_char_t *member_name, unsigned32 priority, unsigned_char_t *annotation, unsigned32 *status); Parameters Input
profile_name_syntax To use the syntax specified in the RPC_DEFAULT_ENTRY_SYNTAX environment variable, provide rpc_c_ns_syntax_default.
profile_name
if_id
member_name_syntax To use the syntax specified in the RPC_DEFAULT_ENTRY_SYNTAX environment variable, provide rpc_c_ns_syntax_default.
member_name
priority When adding the default profile member, use a value of 0 (zero).
annotation The string is used by applications for informational purposes only. For example, an application can use this string to store the interface name string (specified in the IDL file). DCE RPC does not use this string during lookup or import operations, or for enumerating profile elements. Output
status
Description If the profile_name entry does not exist, this routine creates the entry with a profile attribute and adds the profile element specified by the if_id, member_name, priority, and annotation parameters. In this case, the application must have permission to create the entry. Otherwise, a management application with the necessary permissions creates the entry by calling rpc_ns_mgmt_entry_create( ) before the application is run. If an element with the specified member name and interface identifier are already in the profile, this routine updates the element's priority and annotation string using the values provided in the priority and annotation parameters. An application can add the entry in the member_name parameter to a profile before it creates the entry itself.
Permissions Required
Return Values Errors The following describes a partial list of errors that might be returned. Refer to the OSF DCE Problem Determination Guide for complete descriptions of all error messages.
rpc_s_ok
rpc_s_class_version_mismatch
rpc_s_incomplete_name
rpc_s_invalid_name_syntax
rpc_s_invalid_priority
rpc_s_name_service_unavailable
rpc_s_no_ns_permission
rpc_s_unsupported_name_syntax
Related Information rpc_ns_mgmt_entry_create(3rpc) rpc_ns_profile_elt_remove(3rpc)
|