Blame source/uds/uds-error.h

Packit Service 310c69
/*
Packit Service 310c69
 * Copyright (c) 2020 Red Hat, Inc.
Packit Service 310c69
 *
Packit Service 310c69
 * This program is free software; you can redistribute it and/or
Packit Service 310c69
 * modify it under the terms of the GNU General Public License
Packit Service 310c69
 * as published by the Free Software Foundation; either version 2
Packit Service 310c69
 * of the License, or (at your option) any later version.
Packit Service 310c69
 * 
Packit Service 310c69
 * This program is distributed in the hope that it will be useful,
Packit Service 310c69
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 310c69
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service 310c69
 * GNU General Public License for more details.
Packit Service 310c69
 * 
Packit Service 310c69
 * You should have received a copy of the GNU General Public License
Packit Service 310c69
 * along with this program; if not, write to the Free Software
Packit Service 310c69
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
Packit Service 310c69
 * 02110-1301, USA. 
Packit Service 310c69
 *
Packit Service 310c69
 * $Id: //eng/uds-releases/jasper/src/uds/uds-error.h#3 $
Packit Service 310c69
 */
Packit Service 310c69
Packit Service 310c69
/**
Packit Service 310c69
 * @file
Packit Service 310c69
 * @brief UDS error code definitions
Packit Service 310c69
 **/
Packit Service 310c69
#ifndef UDS_ERROR_H
Packit Service 310c69
#define UDS_ERROR_H
Packit Service 310c69
Packit Service 310c69
Packit Service 310c69
/**
Packit Service 310c69
 * Valid return status codes for API routines.
Packit Service 310c69
 **/
Packit Service 310c69
enum udsStatusCodes {
Packit Service 310c69
  /** Successful return */
Packit Service 310c69
  UDS_SUCCESS      = 0,
Packit Service 310c69
Packit Service 310c69
  /** Used as a base value for reporting errors  */
Packit Service 310c69
  UDS_ERROR_CODE_BASE             = 1024,
Packit Service 310c69
  /** The UDS library is not initialized */
Packit Service 310c69
  UDS_UNINITIALIZED               = UDS_ERROR_CODE_BASE + 0,
Packit Service 310c69
  /** The UDS library is shutting down */
Packit Service 310c69
  UDS_SHUTTINGDOWN                = UDS_ERROR_CODE_BASE + 1,
Packit Service 310c69
  /** Could not load scanner modules */
Packit Service 310c69
  UDS_EMODULE_LOAD                = UDS_ERROR_CODE_BASE + 2,
Packit Service 310c69
  /** Could not create a new thread */
Packit Service 310c69
  UDS_ENOTHREADS                  = UDS_ERROR_CODE_BASE + 3,
Packit Service 310c69
  /** Could not find the specified library context */
Packit Service 310c69
  UDS_NOCONTEXT                   = UDS_ERROR_CODE_BASE + 4,
Packit Service 310c69
  /** The specified library context is disabled */
Packit Service 310c69
  UDS_DISABLED                    = UDS_ERROR_CODE_BASE + 5,
Packit Service 310c69
  /** Some saved index component is corrupt */
Packit Service 310c69
  UDS_CORRUPT_COMPONENT           = UDS_ERROR_CODE_BASE + 6,
Packit Service 310c69
  UDS_CORRUPT_FILE                = UDS_CORRUPT_COMPONENT,
Packit Service 310c69
  /** Unknown error */
Packit Service 310c69
  UDS_UNKNOWN_ERROR               = UDS_ERROR_CODE_BASE + 7,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_8               = UDS_ERROR_CODE_BASE + 8,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_9               = UDS_ERROR_CODE_BASE + 9,
Packit Service 310c69
  /** The index configuration or volume format is no longer supported */
Packit Service 310c69
  UDS_UNSUPPORTED_VERSION         = UDS_ERROR_CODE_BASE + 10,
Packit Service 310c69
  /** Index session not available */
Packit Service 310c69
  UDS_NO_INDEXSESSION             = UDS_ERROR_CODE_BASE + 11,
Packit Service 310c69
  /** Index data in memory is corrupt */
Packit Service 310c69
  UDS_CORRUPT_DATA                = UDS_ERROR_CODE_BASE + 12,
Packit Service 310c69
  /** Short read due to truncated file */
Packit Service 310c69
  UDS_SHORT_READ                  = UDS_ERROR_CODE_BASE + 13,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_14              = UDS_ERROR_CODE_BASE + 14,
Packit Service 310c69
  /** Internal resource limits exceeded */
Packit Service 310c69
  UDS_RESOURCE_LIMIT_EXCEEDED     = UDS_ERROR_CODE_BASE + 15,
Packit Service 310c69
  /** Memory overflow due to storage failure */
Packit Service 310c69
  UDS_VOLUME_OVERFLOW             = UDS_ERROR_CODE_BASE + 16,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_17              = UDS_ERROR_CODE_BASE + 17,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_18              = UDS_ERROR_CODE_BASE + 18,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_19              = UDS_ERROR_CODE_BASE + 19,
Packit Service 310c69
  /** Configuration pointer required */
Packit Service 310c69
  UDS_CONF_PTR_REQUIRED           = UDS_ERROR_CODE_BASE + 20,
Packit Service 310c69
  /** Index stats pointer required */
Packit Service 310c69
  UDS_INDEX_STATS_PTR_REQUIRED    = UDS_ERROR_CODE_BASE + 21,
Packit Service 310c69
  /** Context stats pointer required */
Packit Service 310c69
  UDS_CONTEXT_STATS_PTR_REQUIRED  = UDS_ERROR_CODE_BASE + 22,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_23              = UDS_ERROR_CODE_BASE + 23,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_24              = UDS_ERROR_CODE_BASE + 24,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_25              = UDS_ERROR_CODE_BASE + 25,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_26              = UDS_ERROR_CODE_BASE + 26,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_27              = UDS_ERROR_CODE_BASE + 27,
Packit Service 310c69
  /** Memory configuration not supported */
Packit Service 310c69
  UDS_INVALID_MEMORY_SIZE         = UDS_ERROR_CODE_BASE + 28,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_29              = UDS_ERROR_CODE_BASE + 29,
Packit Service 310c69
  /** Index name required */
Packit Service 310c69
  UDS_INDEX_NAME_REQUIRED         = UDS_ERROR_CODE_BASE + 30,
Packit Service 310c69
  /** Configuration required */
Packit Service 310c69
  UDS_CONF_REQUIRED               = UDS_ERROR_CODE_BASE + 31,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_32              = UDS_ERROR_CODE_BASE + 32,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_33              = UDS_ERROR_CODE_BASE + 33,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_34              = UDS_ERROR_CODE_BASE + 34,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_35              = UDS_ERROR_CODE_BASE + 35,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_36              = UDS_ERROR_CODE_BASE + 36,
Packit Service 310c69
  /** Essential files for index not found */
Packit Service 310c69
  UDS_NO_INDEX                    = UDS_ERROR_CODE_BASE + 37,
Packit Service 310c69
  /** Checkpoint frequency out of range */
Packit Service 310c69
  UDS_BAD_CHECKPOINT_FREQUENCY    = UDS_ERROR_CODE_BASE + 38,
Packit Service 310c69
  /** Wrong type of index configuration */
Packit Service 310c69
  UDS_WRONG_INDEX_CONFIG          = UDS_ERROR_CODE_BASE + 39,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_40              = UDS_ERROR_CODE_BASE + 40,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_41              = UDS_ERROR_CODE_BASE + 41,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_42              = UDS_ERROR_CODE_BASE + 42,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_43              = UDS_ERROR_CODE_BASE + 43,
Packit Service 310c69
  /** Premature end of file in scanned file */
Packit Service 310c69
  UDS_END_OF_FILE                 = UDS_ERROR_CODE_BASE + 44,
Packit Service 310c69
  /** Attempt to access unsaved index */
Packit Service 310c69
  UDS_INDEX_NOT_SAVED_CLEANLY     = UDS_ERROR_CODE_BASE + 45,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_46              = UDS_ERROR_CODE_BASE + 46,
Packit Service 310c69
  /** There is not sufficient space to create the index */
Packit Service 310c69
  UDS_INSUFFICIENT_INDEX_SPACE    = UDS_ERROR_CODE_BASE + 47,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_48              = UDS_ERROR_CODE_BASE + 48,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_49              = UDS_ERROR_CODE_BASE + 49,
Packit Service 310c69
  /** Index is suspended */
Packit Service 310c69
  UDS_SUSPENDED                   = UDS_ERROR_CODE_BASE + 50,
Packit Service 310c69
  /** Unused */
Packit Service 310c69
  UDS_UNUSED_CODE_51              = UDS_ERROR_CODE_BASE + 51,
Packit Service 310c69
  /** Index session is already initialized */
Packit Service 310c69
  UDS_INDEXSESSION_IN_USE         = UDS_ERROR_CODE_BASE + 52,
Packit Service 310c69
  /** Callback required */
Packit Service 310c69
  UDS_CALLBACK_REQUIRED           = UDS_ERROR_CODE_BASE + 53,
Packit Service 310c69
  /** Wrong operation type */
Packit Service 310c69
  UDS_INVALID_OPERATION_TYPE      = UDS_ERROR_CODE_BASE + 54,
Packit Service 310c69
  /** One more than the last UDS_ERROR_CODE */
Packit Service 310c69
  UDS_ERROR_CODE_LAST,
Packit Service 310c69
  /** One more than this block can use */
Packit Service 310c69
  UDS_ERROR_CODE_BLOCK_END = UDS_ERROR_CODE_BASE + 1024
Packit Service 310c69
};
Packit Service 310c69
Packit Service 310c69
#endif /* UDS_ERROR_H */