ap_provider.inc 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. { Licensed to the Apache Software Foundation (ASF) under one or more
  2. * contributor license agreements. See the NOTICE file distributed with
  3. * this work for additional information regarding copyright ownership.
  4. * The ASF licenses this file to You under the Apache License, Version 2.0
  5. * (the "License"); you may not use this file except in compliance with
  6. * the License. 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. {
  17. * @package Provider API
  18. }
  19. //#include "ap_config.h"
  20. type
  21. ap_list_provider_names_t = record
  22. provider_name: PChar;
  23. end;
  24. {
  25. * This function is used to register a provider with the global
  26. * provider pool.
  27. * @param pool The pool to create any storage from
  28. * @param provider_group The group to store the provider in
  29. * @param provider_name The name for this provider
  30. * @param provider_version The version for this provider
  31. * @param provider Opaque structure for this provider
  32. * @return APR_SUCCESS if all went well
  33. }
  34. function ap_register_provider(pool: Papr_pool_t;
  35. const provider_group, provider_name, provider_version: PChar;
  36. const provider: Pointer): apr_status_t;
  37. {$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
  38. external LibHTTPD name LibNamePrefix + 'ap_register_provider' + LibSuff20;
  39. {
  40. * This function is used to retrieve a provider from the global
  41. * provider pool.
  42. * @param provider_group The group to look for this provider in
  43. * @param provider_name The name for the provider
  44. * @param provider_version The version for the provider
  45. * @return provider pointer to provider if found, NULL otherwise
  46. }
  47. function ap_lookup_provider(provider_group, provider_name, provider_version: PChar): Pointer;
  48. {$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
  49. external LibHTTPD name LibNamePrefix + 'ap_lookup_provider' + LibSuff12;
  50. {
  51. * This function is used to retrieve a list (array) of provider
  52. * names from the specified group with the specified version.
  53. * @param pool The pool to create any storage from
  54. * @param provider_group The group to look for this provider in
  55. * @param provider_version The version for the provider
  56. * @return pointer to array of ap_list_provider_names_t of provider names (could be empty)
  57. }
  58. function ap_list_provider_names(pool: Papr_pool_t;
  59. const provider_group, provider_version: PChar): Papr_array_header_t;
  60. {$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
  61. external LibHTTPD name LibNamePrefix + 'ap_list_provider_names' + LibSuff12;