gfal_get_ids(3) - Linux man page

Name

gfal_get_ids - Extracts the SRM file/request ids from the 'gfal_internal'

object

Synopsis

import gfal

int gfal_get_ids (gfal_internal gfal, int *srm_reqid, int **srm_fileids, char **srmv2_reqtoken);

int gfal_get_ids_setype (gfal_internal gfal, enum se_type *setype, int *srm_reqid, int **srm_fileids, char **srmv2_reqtoken);

Description

gfal_get_ids Extracts the SRM file/request ids of the last called GFAL function from the gfal_internal object.

As it will return only a copy of different ids, you have to manually free variables srm_fileids and srmv2_reqtoken if the corresponding value is not NULL

gfal
gfal_internal object generated from user parameters.
setype
The SE type which has been used to get the TURL. Possible values are: TYPE_SRM, TYPE_SRMv2, TYPE_SE.
srm_reqid
The request id returned by a SRMv1 SE.
srm_fileids
The table of file ids returned by a SRMv1 SE.
srmv2_reqtoken
The request token returned by a SRMv2 SE.

Return Value

This routine returns the number of files (useful if srm_fileids is not NULL) on a success, or -1 in case of error.

See Also

gfal(3), gfal_request_new(3), gfal_internal_free(3), gfal_init(3), gfal_deletesurls(3), gfal_removedir(3), gfal_turlsfromsurls(3), gfal_ls(3), gfal_get(3), gfal_getstatus(3), gfal_prestage(3), gfal_prestagestatus(3), gfal_pin(3), gfal_release(3), gfal_abortrequest(3), gfal_abortfiles(3), gfal_set_xfer_done(3), gfal_set_xfer_running(3), gfal_get_ids(3), gfal_set_ids(3), gfal_get_results(3),

Referenced By

gfal_bringonline(3), gfal_get_timeout_srm(3), gfal_set_timeout_srm(3), gfal_set_verbose(3), gfal_set_verbose_python(3)