next up previous 264
Next: astPutColumnData - Retrieve all the data values stored in a column
Up: AST Function Descriptions
Previous: astPutCards - Store a set of FITS header cards in a FitsChan


astPutChannelData - Store arbitrary data to be passed to a source or sink function

Description:
This function stores a supplied arbitrary pointer in the Channel. When a source or sink function is invoked by the Channel, the invoked function can use the astChannelData macro to retrieve the pointer. This provides a thread-safe alternative to passing file descriptors, etc, via global static variables.
Synopsis:
void astPutChannelData( AstChannel $*$this, void $*$data )
Parameters:
this
Pointer to the Channel.
data
A pointer to be made available to the source and sink functions via the astChannelData macro. May be NULL.
Class Applicability:
Channel
All Channels have this function.
Notes:
  • This routine is not available in the Fortran 77 interface to the AST library.


next up previous 264
Next: astPutColumnData - Retrieve all the data values stored in a column
Up: AST Function Descriptions
Previous: astPutCards - Store a set of FITS header cards in a FitsChan

AST A Library for Handling World Coordinate Systems in Astronomy
Starlink User Note 211
R.F. Warren-Smith & D.S. Berry
24th May 2011
E-mail:ussc@star.rl.ac.uk

Copyright (C) 2009 Science \& Technology Facilities Council