proto.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright 2008, Yahoo! Inc.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef PROTO_H_
  17. #define PROTO_H_
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21. static const int NOTIFY_OP=0;
  22. static const int CREATE_OP=1;
  23. static const int DELETE_OP=2;
  24. static const int EXISTS_OP=3;
  25. static const int GETDATA_OP=4;
  26. static const int SETDATA_OP=5;
  27. static const int GETACL_OP=6;
  28. static const int SETACL_OP=7;
  29. static const int GETCHILDREN_OP=8;
  30. static const int SYNC_OP=9;
  31. static const int PING_OP=11;
  32. static const int CLOSE_OP=-11;
  33. static const int SETAUTH_OP=100;
  34. #ifdef __cplusplus
  35. }
  36. #endif
  37. #endif /*PROTO_H_*/