Grass-valley K2 TX/MAM Database Protocol Manual v.2.2 Manual de usuario Pagina 24

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 38
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 23
TX/MAM Database Protocol Manual - document version: 2.2 Page 24
8.4 Adding a field update for a text blob database field
int cob_fieldlist_set_small_blob( char *field, char *value, int size,
int content_type );
Parameters
Name
Description
char *field
The field to get, e.g. "transfer_metadata".
char *value
The new value, e.g. "adjusted" The new value, e.g. "<XML></XML>".
int size
The size of the value, e.g. 11.
int data_type
The origin of the data, e.g. ORIGINAL_DATA.
Result
The result of the function is an integer that can have following values:
Value
Description
0
Success, the field has been added.
-1
Failure, the field could not be added.
Example
This example sets the transfer_metadata field to "<XML></XML>" for asset_element record
with id == 345:
cob_fieldlist_clear();
cob_fieldlist_set_small_blob( "transfer_metadata", "<XML></XML>",11, ORIGINAL_DATA );
if (cob_adjust_field_values( "asset_element", 345 ) != 0 ) {
/* Log error */
}
Vista de pagina 23
1 2 ... 19 20 21 22 23 24 25 26 27 28 29 ... 37 38

Comentarios a estos manuales

Sin comentarios