meminfo.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* $Id: meminfo.h 5897 2009-07-20 14:52:34Z bogdan_iancu $*
  2. *
  3. * mem (malloc) info
  4. *
  5. * Copyright (C) 2001-2003 FhG Fokus
  6. *
  7. * This file is part of opensips, a free SIP server.
  8. *
  9. * opensips is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation; either version 2 of the License, or
  12. * (at your option) any later version
  13. *
  14. * opensips is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  22. *
  23. */
  24. /*
  25. * History:
  26. * --------
  27. * 2005-03-02 created (andrei)
  28. * 2006-01-05 renamed meminfo to mem_info due to name conflict on solaris
  29. */
  30. #ifndef meminfo_h
  31. #define meminfo_h
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35. struct mem_info{
  36. unsigned long total_size;
  37. unsigned long free;
  38. unsigned long used;
  39. unsigned long real_used; /*used + overhead*/
  40. unsigned long max_used;
  41. unsigned long min_frag;
  42. unsigned long total_frags; /* total fragment no */
  43. };
  44. #ifdef __cplusplus
  45. } // extern "C" {
  46. #endif
  47. #endif