HP Operations Manager for Windows

opcreg_copy()


   #include opcapi.h

   int opcreg_copy(
            const opcregcond    reg_cond,           /* in */
            opcregcond          *copy               /* out */
                  )

Parameters

reg_cond
HPOM registration condition structure.

copy
Copy of reg_cond.

Description

The API creates a copy of the condition and returns it in copy. The allocated memory has to be deallocated using opcreg_free(). copy must be freed using opcreg_free() before calling this function.

Return Values

OPC_ERR_OK:
OK

OPC_ERR_INVALID_OUTPARAM:
copy is invalid

OPC_ERR_NO_MEMORY:
allocation of memory failed

Versions

HPOM for Windows A.07.50 and later

See Also

opcreg_create()

opcreg_free()

opcreg_get_long()

opcreg_get_str()

opcreg_set_long()

opcreg_set_str()