Sybase Technical Library - Product Manuals Home
[Search Forms] [Previous Section with Hits] [Next Section with Hits] [Clear Search] Expand Search

CS_IODESC
structure [Table of Contents] CS_SERVERMSG structure

Open Client Client-Library/C Reference Manual

[-] Chapter 2 Topics
[-] Client-Library and SQL Structures
[-] CS_OID structure

CS_OID structure

CS_OID structures store object identifiers.

An Object Identifier (OID) is an encoded character string that provides a machine- and network-independent method of uniquely identifying objects in a distributed environment. An OID functions as a symbolic global name that means the same to all applications in a distributed environment.

Sybase uses OIDs to represent the following:

Encoding of object identifiers

OIDs are encoded as a sequence of decimal integers separated by dots. OIDs are defined according to ISO standards and organized in a hierarchy that avoids duplication among different vendors. In the hierarchy, unique prefixes are assigned to different vendors. For example, the prefix "1.3.1.4.1.897" belongs to Sybase, and all Sybase OIDs have this prefix.

Definition of the CS_OID structure

A CS_OID structure is required to exchange an OID between Client-Library routines and application code.

The CS_OID structure is used with calls to ct_ds_lookup or ct_ds_objinfo.

The CS_OID structure is defined as follows:

typedef struct _cs_oid
 {
         CS_INT  oid_length;
         CS_CHAR oid_buffer[CS_MAX_DS_STRING];
 } CS_OID;

where:

Using predefined OID strings

The Client-Library header files define OID strings for applications to use in initializing or comparing OIDs. Predefined OID strings are used for the following purposes:


CS_IODESC
structure [Table of Contents] CS_SERVERMSG structure