apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: apr/include apr_random.h
Date Tue, 11 Nov 2003 22:03:00 GMT
bnicholes    2003/11/11 14:03:00

  Modified:    include  apr_random.h
  Add APR_DECLARE() to the function prototypes so that the will show up in
  the NetWare export list.
  Revision  Changes    Path
  1.6       +10 -10    apr/include/apr_random.h
  Index: apr_random.h
  RCS file: /home/cvs/apr/include/apr_random.h,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- apr_random.h	6 Nov 2003 00:25:33 -0000	1.5
  +++ apr_random.h	11 Nov 2003 22:03:00 -0000	1.6
  @@ -74,23 +74,23 @@
       void *data;
  -apr_crypto_hash_t *apr_crypto_sha256_new(apr_pool_t *p);
  +APR_DECLARE(apr_crypto_hash_t *) apr_crypto_sha256_new(apr_pool_t *p);
   typedef struct apr_random_t apr_random_t;
  -void apr_random_init(apr_random_t *g,apr_pool_t *p,
  +APR_DECLARE(void) apr_random_init(apr_random_t *g,apr_pool_t *p,
                        apr_crypto_hash_t *pool_hash,apr_crypto_hash_t *key_hash,
                        apr_crypto_hash_t *prng_hash);
  -apr_random_t *apr_random_standard_new(apr_pool_t *p);
  -void apr_random_add_entropy(apr_random_t *g,const void *entropy_,
  +APR_DECLARE(apr_random_t *) apr_random_standard_new(apr_pool_t *p);
  +APR_DECLARE(void) apr_random_add_entropy(apr_random_t *g,const void *entropy_,
                               apr_size_t bytes);
  -apr_status_t apr_random_insecure_bytes(apr_random_t *g,void *random,
  +APR_DECLARE(apr_status_t) apr_random_insecure_bytes(apr_random_t *g,void *random,
                                          apr_size_t bytes);
  -apr_status_t apr_random_secure_bytes(apr_random_t *g,void *random,
  +APR_DECLARE(apr_status_t) apr_random_secure_bytes(apr_random_t *g,void *random,
                                        apr_size_t bytes);
  -void apr_random_barrier(apr_random_t *g);
  -apr_status_t apr_random_secure_ready(apr_random_t *r);
  -apr_status_t apr_random_insecure_ready(apr_random_t *r);
  +APR_DECLARE(void) apr_random_barrier(apr_random_t *g);
  +APR_DECLARE(apr_status_t) apr_random_secure_ready(apr_random_t *r);
  +APR_DECLARE(apr_status_t) apr_random_insecure_ready(apr_random_t *r);
   /* Call this in the child after forking to mix the randomness
      pools. Note that its generally a bad idea to fork a process with a
  @@ -103,6 +103,6 @@
      applications need ever call it themselves.
   struct apr_proc_t;
  -void apr_random_after_fork(struct apr_proc_t *proc);
  +APR_DECLARE(void) apr_random_after_fork(struct apr_proc_t *proc);
   #endif /* ndef APR_RANDOM_H */

View raw message