Skip to content
Snippets Groups Projects
Select Git revision
  • 8d06f29e5b860af83a1b7b9af3cecf10080a7b93
  • master default
  • wip-slh-dsa-sha2-128s
  • master-updates
  • release-3.10-fixes
  • getopt-prototype
  • fix-bcrypt-warning
  • refactor-hmac
  • wip-use-alignas
  • trim-sha3-context
  • fix-gitlab-ci
  • check-fat-emulate
  • delete-digest_func-size
  • slh-dsa-shake-128f-nettle
  • slh-dsa-shake-128s-nettle
  • slh-dsa-shake-128s
  • delete-openpgp
  • ppc64-sha512
  • delete-md5-compat
  • cleanup-hmac-tests
  • ppc64-sha256
  • nettle_3.10.2_release_20250626
  • nettle_3.10.1_release_20241230
  • nettle_3.10_release_20240616
  • nettle_3.10rc2
  • nettle_3.10rc1
  • nettle_3.9.1_release_20230601
  • nettle_3.9_release_20230514
  • nettle_3.8.1_release_20220727
  • nettle_3.8_release_20220602
  • nettle_3.7.3_release_20210606
  • nettle_3.7.2_release_20210321
  • nettle_3.7.1_release_20210217
  • nettle_3.7_release_20210104
  • nettle_3.7rc1
  • nettle_3.6_release_20200429
  • nettle_3.6rc3
  • nettle_3.6rc2
  • nettle_3.6rc1
  • nettle_3.5.1_release_20190627
  • nettle_3.5_release_20190626
41 results

configure.ac

Blame
  • callback.h 1.29 KiB
    /*
    || This file is part of Pike. For copyright information see COPYRIGHT.
    || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
    || for more information.
    */
    
    #ifndef CALLBACK_H
    #define CALLBACK_H
    
    #include "array.h"
    
    struct callback;
    
    struct callback_list
    {
      struct callback *callbacks;
      int num_calls;
    };
    
    extern struct callback_list fork_child_callback;
    
    typedef void (*callback_func)(struct callback *, void *,void *);
    
    /* Prototypes begin here */
    PMOD_EXPORT void low_call_callback(struct callback_list *lst, void *arg);
    PMOD_EXPORT struct callback *debug_add_to_callback(struct callback_list *lst,
    						   callback_func call,
    						   void *arg,
    						   callback_func free_func);
    PMOD_EXPORT void *remove_callback(struct callback *l);
    void free_callback_list(struct callback_list *lst);
    void cleanup_callbacks(void);
    void count_memory_in_callbacks(size_t * num, size_t * size);
    /* Prototypes end here */
    
    #define add_to_callback(LST,CALL,ARG,FF) \
      dmalloc_touch(struct callback *,debug_add_to_callback((LST),(CALL),(ARG),(FF)))
    
    #if 1
    #define call_callback(LST, ARG) do {			\
      struct callback_list *lst_=(LST);			\
      void *arg_=(ARG);					\
      if(lst_->callbacks) low_call_callback(lst_, arg_);	\
    }while(0)
    #else
    #define call_callback(LST, ARG) low_call_callback((LST), (ARG))
    #endif
    
    #endif