publish.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Presence Agent, publish handling
  3. *
  4. * $Id$
  5. *
  6. * Copyright (C) 2001-2003 FhG Fokus
  7. *
  8. * This file is part of ser, a free SIP server.
  9. *
  10. * ser is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation; either version 2 of the License, or
  13. * (at your option) any later version
  14. *
  15. * For a license to use the ser software under conditions
  16. * other than those described here, or to purchase support for this
  17. * software, please contact iptel.org by e-mail at the following addresses:
  18. * [email protected]
  19. *
  20. * ser is distributed in the hope that it will be useful,
  21. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23. * GNU General Public License for more details.
  24. *
  25. * You should have received a copy of the GNU General Public License
  26. * along with this program; if not, write to the Free Software
  27. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  28. *
  29. */
  30. #ifndef PUBLISH_H
  31. #define PUBLISH_H
  32. #include "../../parser/msg_parser.h"
  33. #include "qsa_interface.h"
  34. /*
  35. * Handle a publish Request
  36. */
  37. int handle_publish(struct sip_msg* _m, char* _domain, char* _s2);
  38. /* Publish given parsed "presence document", the etag must be given. If it
  39. * was given by publisher, set has_tag to 1. If generated se has_tag to 0. */
  40. int process_published_presentity_info(presentity_t *presentity, presentity_info_t *p, str *etag,
  41. time_t expires, int has_tag);
  42. #endif /* PUBLISH_H */