srv_reglist

Description

Obtain a list of all of the procedures registered in the Open Server.

Syntax

CS_RETCODE srv_reglist(spp, proclistp)
SRV_PROC                  *spp;
SRV_PROCLIST          **proclistp;

Parameters

spp

A pointer to an internal thread control structure.

proclistp

A pointer to a SRV_PROCLIST pointer that will be set to the address of a SRV_PROCLIST containing the results. The Open Server allocates the space for this structure at the time srv_reglist is called.

Returns

Table 3-98: Return values (srv_reglist)

Returns

To indicate

CS_SUCCEED

The routine completed successfully.

CS_FAIL

The routine failed.

Examples

Example 1

#include   <ospublic.h>
/*
** Local Prototype.
*/
CS_RETCODE      ex_srv_reglist PROTOTYPE((
SRV_PROC        *spp,
SRV_PROCLIST    **proclp
));

/*
** EX_SRV_REGLIST
**
** Arguments:
**
**   spp       Pointer to an internal thread control structure.
**   proclp    Pointer to a SRV_PROCLIST pointer that will be set
**             to point to the result.
**
** Returns
**
**   CS_SUCCEED    srv_reglist was successful.
**   CS_FAIL       An argument was invalid or srv_reglist failed.
**
*/
CS_RETCODE      ex_srv_reglist (spp, proclp)
SRV_PROC        *spp;
SRV_PROCLIST    **proclp;
{
      /* Check arguments. */
      if(spp == (SRV_PROC *)NULL)
      {
            return(CS_FAIL);
      }
      return(srv_reglist(spp,proclp));
}

Usage

See also

srv_reglistfree