Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptadddata.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptadddata.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptadddata.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptadddata.html on line 8
Add data to the provided data chain
int PtAddData( PtDataHdr_t **ptr,
long type,
long subtype,
void *data,
long len,
PtDataRemoveF_t *remove );
- ptr
- The address of the pointer to the chain the data should be added to.
- type
- A unique data type.
- subtype
- A subtype that's used to distinguish multiple blocks of data added
as the same type.
This argument shouldn't be -1, because -1 has special meaning when
searching for a specific block within the provided data chain.
- data
- A pointer to the data to be added to the provided data chain.
- len
- The size of the block of data added, or 0 if it isn't required.
ph
This function adds a piece of data to the provided data chain.
The data provided must be in a block of memory created by
malloc().
You can retrieve this data by calling
PtFindData(),
or
PtFindNextData().
0 on success, or -1 if an error occurred (e.g. out of memory).
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PtFindData(),
PtFindNextData(),
PtRemoveData(),
PtUnlinkData()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptadddata.html on line 124
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptadddata.html on line 124