Changeset ce5f776 in mod_gnutls for src/gnutls_cache.h


Ignore:
Timestamp:
May 2, 2018, 2:30:26 PM (3 years ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio, debian/master, master, proxy-ticket
Children:
eaa8a9d
Parents:
5ab2868
Message:

Move config and post_config of a cache instance to separate functions

This prepares the infrastructure for multiple caches and simplifies
the server configuration structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_cache.h

    r5ab2868 rce5f776  
    3333 * `Mutex` directive */
    3434#define MGS_CACHE_MUTEX_NAME "gnutls-cache"
     35
     36/**
     37 * Configure a cache instance
     38 *
     39 * This function is supposed to be called during config and
     40 * initializes an mgs_cache_t by finding the named socache provider
     41 * and creating a cache instance with the given configuration. Note
     42 * that the socache instance is only created, not initialized, which
     43 * is supposed to happen during post_config.
     44 *
     45 * @param cache pointer to the mgs_cache_t, memory will be allocated
     46 * if currently NULL.
     47 *
     48 * @param server associated server for logging purposes
     49 *
     50 * @param type socache provider type
     51 *
     52 * @param config configuration string for the socache provider, may be
     53 * `NULL` if the provider accepts an empty configuration
     54 *
     55 * @param pconf configuration memory pool
     56 *
     57 * @param ptemp temporary memory pool
     58 */
     59const char *mgs_cache_inst_config(mgs_cache_t *cache, server_rec *server,
     60                                  const char* type, const char* config,
     61                                  apr_pool_t *pconf, apr_pool_t *ptemp);
    3562
    3663/**
Note: See TracChangeset for help on using the changeset viewer.