
TX/MAM Database Protocol Manual - document version: 2.2 – Page 27
8.7 Creating the assetjobs, asset_index and group_access records for
an asset in the database
int cob_create_asset_references( const long long assetId, const long long userGroupId, const long
long logUserGroupId );
Parameters
ID of the user group the asset belongs to.
ID of the log user group the application belongs to
Result
The result of the function is an integer that can have following values:
Success, the asset references have been created.
Failure, the asset references have not been created.
Example
This example sets the name field to "adjusted" for main_event record with id == 1035:
cob_fieldlist_clear();
cob_criteria_clear();
if ( cob_create_asset_references( assetId, userGroupId, logUserGroupId ) != 0 ) {
/* Log error */
}
Comentarios a estos manuales