[sr-dev] git:master:eb1bf9a6: presence: do not include presence.h in other header files

Daniel-Constantin Mierla miconda at gmail.com
Sun Jan 13 11:36:22 CET 2019

Module: kamailio
Branch: master
Commit: eb1bf9a69abad3d237c136750fe8cacea4cd0a31
URL: https://github.com/kamailio/kamailio/commit/eb1bf9a69abad3d237c136750fe8cacea4cd0a31

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-01-13T11:31:22+01:00

presence: do not include presence.h in other header files

- it exports as extern the module parameter variables and other modules built on
top of presence can end up including this header file, overwriting
declaration of variables with same name
- renamed db_url to pres_db_url, this being a common variable name, to
avoid same situation with a mistaken include in the future
- GH #1809


Modified: src/modules/presence/hash.h
Modified: src/modules/presence/presence.c
Modified: src/modules/presence/presence.h
Modified: src/modules/presence/presence_dmq.c
Modified: src/modules/presence/presence_dmq.h
Modified: src/modules/presence/presentity.h
Modified: src/modules/presence/subscribe.h


Diff:  https://github.com/kamailio/kamailio/commit/eb1bf9a69abad3d237c136750fe8cacea4cd0a31.diff
Patch: https://github.com/kamailio/kamailio/commit/eb1bf9a69abad3d237c136750fe8cacea4cd0a31.patch

More information about the sr-dev mailing list