/* * © Copyright 1976, 2003 Hewlett-Packard Development Company, L.P. * * Confidential computer software. Valid license from HP and/or its * subsidiaries required for possession, use, or copying. * * Consistent with FAR 12.211 and 12.212, Commercial Computer Software, * Computer Software Documentation, and Technical Data for Commercial * Items are licensed to the U.S. Government under vendor's standard * commercial license. * * Neither HP nor any of its subsidiaries shall be liable for technical * or editorial errors or omissions contained herein. The information * in this document is provided "as is" without warranty of any kind * and is subject to change without notice. The warranties for HP * products are set forth in the express limited warranty statements * accompanying such products. Nothing herein should be construed as * constituting an additional warranty. */ /* chess_tbl.h - include file for the 'chess' subtree method routines * * NOTE: This file is created by the ucxaxp$dka0:[sys0.syscommon.][sysexe]ucx$snmpi.exe;1 program from definitions in 'alldefs_624981101.defs'. * Editing this file is not recommended. */ #ifndef _CHESS_TBL_H_ #define _CHESS_TBL_H_ #include "esnmp.h" enum chess_variables { I_chessProductID , /* 0 */ I_chessMaxGames , /* 1 */ I_chessNumGames , /* 2 */ I_gameIndex , /* 3 */ I_gameDescr , /* 4 */ I_gameNumMoves , /* 5 */ I_gameStatus , /* 6 */ I_moveIndex , /* 7 */ I_moveByWhite , /* 8 */ I_moveByBlack , /* 9 */ I_moveStatus , /* 10 */ MAX_CHESS_TBL_VARIABLES }; extern int chess_initialize(void); extern SUBTREE chess_subtree; /* -- chess family -- */ /* The group structure for chess */ typedef struct _chess_type { OID chessProductID; int chessMaxGames; int chessNumGames; char chessProductID_mark; char chessMaxGames_mark; char chessNumGames_mark; } chess_type; extern int chess_get(METHOD *method); /* -- gameEntry family -- */ /* enumerations for gameEntry group */ #define D_gameStatus_complete 1 #define D_gameStatus_underway 2 #define D_gameStatus_delete 3 /* The group structure for gameEntry (instance index is gameIndex) */ typedef struct _gameEntry_type { int gameIndex; OCT gameDescr; int gameNumMoves; int gameStatus; char gameIndex_mark; char gameDescr_mark; char gameNumMoves_mark; char gameStatus_mark; } gameEntry_type; extern int gameEntry_get(METHOD *method); extern int gameEntry_set( METHOD *method ); extern gameEntry_type *gameEntry_new( void ); extern void gameEntry_free( gameEntry_type *data ); /* -- moveEntry family -- */ /* enumerations for moveEntry group */ #define D_moveStatus_ok 1 #define D_moveStatus_delete 2 /* The group structure for moveEntry (instance index is gameIndex moveIndex) */ typedef struct _moveEntry_type { int moveIndex; OCT moveByWhite; OCT moveByBlack; int moveStatus; /* NOTE: following field is part of index but not part of group*/ int gameIndex; char moveIndex_mark; char moveByWhite_mark; char moveByBlack_mark; char moveStatus_mark; char gameIndex_mark; } moveEntry_type; extern int moveEntry_get(METHOD *method); extern int moveEntry_set( METHOD *method ); extern moveEntry_type *moveEntry_new( void ); extern void moveEntry_free( moveEntry_type *data ); #endif /* _CHESS_TBL_H_ Multiple include guard */