ares_save_options.3 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. .\" $Id$
  2. .\"
  3. .\" Copyright 1998 by the Massachusetts Institute of Technology.
  4. .\"
  5. .\" Permission to use, copy, modify, and distribute this
  6. .\" software and its documentation for any purpose and without
  7. .\" fee is hereby granted, provided that the above copyright
  8. .\" notice appear in all copies and that both that copyright
  9. .\" notice and this permission notice appear in supporting
  10. .\" documentation, and that the name of M.I.T. not be used in
  11. .\" advertising or publicity pertaining to distribution of the
  12. .\" software without specific, written prior permission.
  13. .\" M.I.T. makes no representations about the suitability of
  14. .\" this software for any purpose. It is provided "as is"
  15. .\" without express or implied warranty.
  16. .\"
  17. .TH ARES_SAVE_OPTIONS 3 "1 June 2007"
  18. .SH NAME
  19. ares_save_options \- Save configuration values obtained from initialized ares_channel
  20. .SH SYNOPSIS
  21. .nf
  22. .B #include <ares.h>
  23. .PP
  24. .B void ares_save_options(ares_channel \fIchannel\fP, struct ares_options *\fIoptions\fP, int *\fIoptmask\fP)
  25. .fi
  26. .SH DESCRIPTION
  27. The \fBares_save_options(3)\fP function saves the channel data identified by
  28. .IR channel ,
  29. into the options struct identified by
  30. .IR options ,
  31. and saves the mask of options which are set to the integer
  32. pointer (passed by reference) identified by
  33. .IR optmask .
  34. The resultant options and optmask are then able to be
  35. passed directly to ares_init_options. When the options
  36. are no longer needed, ares_destroy_options should be called
  37. to free any associated memory.
  38. .SH NOTE
  39. Since c-ares 1.6.0 the ares_options struct has been "locked" meaning that it
  40. won't be extended to cover new funtions. This function will remain
  41. functioning, but it can only return config data that can be represented in
  42. this config struct, which may no longer be the complete set of config
  43. options. \fBares_dup(3)\fP will not have that restriction.
  44. .SH SEE ALSO
  45. .BR ares_destroy_options (3),
  46. .BR ares_init_options (3),
  47. .BR ares_dup (3)
  48. .SH AVAILABILITY
  49. ares_save_options(3) was added in c-ares 1.4.0
  50. .SH AUTHOR
  51. Brad House
  52. .br
  53. Copyright 1998 by the Massachusetts Institute of Technology.