ap_provider.inc 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. { Copyright 2002-2005 The Apache Software Foundation or its licensors, as
  2. * applicable.
  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. //#include "ap_config.h"
  17. {
  18. * @package Provider API
  19. }
  20. {
  21. * This function is used to register a provider with the global
  22. * provider pool.
  23. * @param pool The pool to create any storage from
  24. * @param provider_group The group to store the provider in
  25. * @param provider_name The name for this provider
  26. * @param provider_version The version for this provider
  27. * @param provider Opaque structure for this provider
  28. * @return APR_SUCCESS if all went well
  29. }
  30. function ap_register_provider(pool: Papr_pool_t;
  31. const provider_group, provider_name, provider_version: PChar;
  32. const provider: Pointer): apr_status_t;
  33. {$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
  34. external LibHTTPD name LibNamePrefix + 'ap_register_provider' + LibSuff20;
  35. {
  36. * This function is used to retrieve a provider from the global
  37. * provider pool.
  38. * @param provider_group The group to look for this provider in
  39. * @param provider_name The name for the provider
  40. * @param provider_version The version for the provider
  41. * @return provider pointer to provider if found, NULL otherwise
  42. }
  43. function ap_lookup_provider(provider_group, provider_name, provider_version: PChar): Pointer;
  44. {$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
  45. external LibHTTPD name LibNamePrefix + 'ap_lookup_provider' + LibSuff12;