example/thread-pool/psi.c
static ContData *
cont_data_alloc()
{
  ContData *data;

  data = (ContData *) INKmalloc(sizeof(ContData));
  data->magic = MAGIC_ALIVE;
  data->output_vio = NULL;
  data->output_buffer = NULL;
  data->output_reader = NULL;

  data->psi_buffer = NULL;
  data->psi_reader = NULL;
  data->psi_filename[0] = '\0';
  data->psi_filename_len = 0;
  data->psi_success = 0;

  data->parse_state = PARSE_SEARCH;

  data->state = STATE_READ_DATA;
  data->transform_bytes = 0;

  return data;
}
/*-------------------------------------------------------------------------
  cont_data_alloc
  Allocate and initialize a ContData structure associated to a transaction

  Input:
  Output:  
  Return Value:
    Pointer on a new allocated ContData structure
  -------------------------------------------------------------------------*/
cont_data_alloc
Allocate and initialize a ContData structure associated to a transaction

Return Value:
Pointer on a new allocated ContData structure
cont_data_alloc Allocate and initialize a ContData structure associated to a transaction Return Value : Pointer on a new allocated ContData structure
static ContData *
cont_data_alloc()
{
  ContData *data;
  data = (ContData *) INKmalloc(sizeof(ContData));
  data->magic = MAGIC_ALIVE;
  data->output_vio = NULL;
  data->output_buffer = NULL;
  data->output_reader = NULL;
  data->psi_buffer = NULL;
  data->psi_reader = NULL;
  data->psi_filename[0] = '\0';
  data->psi_filename_len = 0;
  data->psi_success = 0;
  data->parse_state = PARSE_SEARCH;
  data->state = STATE_READ_DATA;
  data->transform_bytes = 0;
  return data;
}
static ContData * cont_data_alloc ( ) { ContData * data ; data = ( ContData * ) INKmalloc ( sizeof ( ContData ) ) ; data -> magic = MAGIC_ALIVE ; data -> output_vio = NULL ; data -> output_buffer = NULL ; data -> output_reader = NULL ; data -> psi_buffer = NULL ; data -> psi_reader = NULL ; data -> psi_filename [ 0 ] = ' \0 ' ; data -> psi_filename_len = 0 ; data -> psi_success = 0 ; data -> parse_state = PARSE_SEARCH ; data -> state = STATE_READ_DATA ; data -> transform_bytes = 0 ; return data ; }
cont_data_alloc
Allocate and initialize a ContData structure associated to a transaction
cont_data_alloc Allocate and initialize a ContData structure associated to a transaction