summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPekka Pessi <Pekka.Pessi@nokia.com>2011-02-02 19:53:19 +0200
committerPekka Pessi <Pekka.Pessi@nokia.com>2011-02-07 22:00:57 +0200
commit3d4d139d64c1473a42986655e5930175d30bfa70 (patch)
tree49707253ae6f4da9ec44971bb227f39ef1534d51
parent1aaf4b3483608bd24d4589c8fdd3012c8c5de3e9 (diff)
Add tpsip_version_string ()
-rw-r--r--tpsip/util.c7
-rw-r--r--tpsip/util.h2
2 files changed, 9 insertions, 0 deletions
diff --git a/tpsip/util.c b/tpsip/util.c
index ee7642c..0072fac 100644
--- a/tpsip/util.c
+++ b/tpsip/util.c
@@ -18,10 +18,17 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config.h"
+
#include "util.h"
#include <string.h>
+gchar const *
+tpsip_version_string (void)
+{
+ return "Telepathy-SofiaSIP/" TELEPATHY_SIP_VERSION;
+}
static const guchar escape_table[256] =
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1,
diff --git a/tpsip/util.h b/tpsip/util.h
index 10960e2..135caab 100644
--- a/tpsip/util.h
+++ b/tpsip/util.h
@@ -31,6 +31,8 @@ gchar * tpsip_unquote_string (const gchar *src, gssize len);
void tpsip_string_append_quoted (GString *buf, const gchar *text);
+gchar const *tpsip_version_string ();
+
G_END_DECLS
#endif /* !TPSIP_UTIL_H_ */