00001 // Copyright (C) 2001, Compaq Computer Corporation 00002 // 00003 // This file is part of Vesta. 00004 // 00005 // Vesta is free software; you can redistribute it and/or 00006 // modify it under the terms of the GNU Lesser General Public 00007 // License as published by the Free Software Foundation; either 00008 // version 2.1 of the License, or (at your option) any later version. 00009 // 00010 // Vesta is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 // Lesser General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU Lesser General Public 00016 // License along with Vesta; if not, write to the Free Software 00017 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 00019 // 00020 // ShortIdSRPC.H 00021 // Last modified on Mon Nov 12 18:37:56 EST 2001 by ken@xorian.net 00022 // modified on Thu Jul 20 14:27:16 PDT 2000 by mann 00023 // 00024 // Shared definitions between SRPC client and server for ShortId interface 00025 // 00026 00027 #ifndef _SIDSRPC 00028 #define _SIDSRPC 1 00029 00030 class ShortIdSRPC { 00031 public: 00032 enum { version = 4 }; 00033 enum { 00034 AcquireShortIdBlock, 00035 // Arguments: 00036 // leafflag (int) bool 00037 // Results: 00038 // start (int) ShortId 00039 // leaseExpires (int) time_t 00040 // bits (bytes) bitmap of already used ShortIds 00041 00042 RenewShortIdBlock, 00043 // Arguments: 00044 // start (int) ShortId 00045 // Results: 00046 // leaseExpires (int) time_t 00047 // res (int) bool, return value 00048 00049 ReleaseShortIdBlock, 00050 // Arguments: 00051 // start (int) ShortId 00052 // Results: 00053 // None. 00054 00055 OldKeepDerived, 00056 // "force" is always true 00057 // Arguments: 00058 // ds (int) ShortId 00059 // dt (int) time_t 00060 // Results: 00061 // res (int) errno value 00062 00063 Checkpoint, 00064 // Arguments: 00065 // None. 00066 // Results: 00067 // None. 00068 00069 GetWeedingState, 00070 // Arguments: 00071 // None. 00072 // Results: 00073 // ds (int) ShortId 00074 // dt (int) time_t 00075 // ss (int) ShortId 00076 // st (int) time_t 00077 // sourceWeedInProgress (int) bool 00078 // deletionsInProgress (int) bool 00079 // deletionsDone (int) bool 00080 // checkpointInProgress (int) bool 00081 00082 KeepDerived 00083 // Arguments: 00084 // ds (int) ShortId 00085 // dt (int) time_t 00086 // force (int) bool 00087 // Results: 00088 // res (int) errno value 00089 }; 00090 }; 00091 00092 #endif //_SIDSRPC