PageRenderTime 23ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/branches/ruby/binding-c/runtime/c/inc/etch_resources.h

#
C Header | 55 lines | 25 code | 8 blank | 22 comment | 0 complexity | dc24f5d90311d4b0c22620627f8a3c68 MD5 | raw file
Possible License(s): Apache-2.0
  1. /* $Id$
  2. *
  3. * Licensed to the Apache Software Foundation (ASF) under one or more
  4. * contributor license agreements. See the NOTICE file distributed with
  5. * this work for additional information regarding copyright ownership.
  6. * The ASF licenses this file to you under the Apache License, Version
  7. * 2.0 (the "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. /*
  19. * etch_resources.h
  20. * resource map
  21. * a string-to-etch-object-based hashtable
  22. */
  23. #ifndef ETCHRESOURCES_H
  24. #define ETCHRESOURCES_H
  25. #include "etchhash.h"
  26. #define ETCH_RESOURCES_DEFSIZE 16
  27. const wchar_t* ETCH_RESXKEY_SOCKET;
  28. const wchar_t* ETCH_RESXKEY_ACCEPTED_CONX;
  29. const wchar_t* ETCH_RESXKEY_POOLTYPE_FREE;
  30. const wchar_t* ETCH_RESXKEY_POOLTYPE_QUEUED;
  31. const wchar_t* ETCH_RESXKEY_MSGIZER_FORMAT;
  32. const wchar_t* ETCH_RESXKEY_MSGIZER_VALUFACT;
  33. const wchar_t* ETCH_RESXVAL_XPORTFMT_BINARY;
  34. const wchar_t* ETCH_RESXVAL_XPORTFMT_XML;
  35. const wchar_t* ETCH_XFACTKEY_TCP;
  36. const wchar_t* ETCH_XPORTKEY_START;
  37. const wchar_t* ETCH_XPORTKEY_START_AND_WAIT_UP;
  38. const wchar_t* ETCH_XPORTKEY_IS_UP;
  39. const wchar_t* ETCH_XPORTKEY_STOP;
  40. const wchar_t* ETCH_XPORTKEY_STOP_AND_WAIT_DOWN;
  41. typedef etch_hashtable etch_resources;
  42. etch_resources* new_etch_resources (const int initialsize);
  43. objmask* etch_resources_get (etch_resources*, const wchar_t* key);
  44. int etch_resources_add (etch_resources*, const wchar_t* key, objmask* value);
  45. int etch_resources_replace (etch_resources*, const wchar_t* key, objmask* value);
  46. int etch_resources_clear (etch_resources*);
  47. #endif /* #ifndef ETCHRESOURCES_H */