Codebase list telepathy-idle / 294399a
Imported Upstream version 0.1.6 Jonny Lamb 14 years ago
16 changed file(s) with 354 addition(s) and 84 deletion(s). Raw diff Collapse all Expand all
0 commit e4adae82d0f6cd8752768e71b1e47861ed3e883d
1 Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
2 Date: Fri Feb 19 12:58:40 2010 +0000
3
4 prepare 0.1.6 release
5
6 NEWS | 21 ++++++++++++++++++++-
7 configure.ac | 4 ++--
8 2 files changed, 22 insertions(+), 3 deletions(-)
9
10 commit ce17922d0ed5bbc337c79cc6051fcdc7d78fc362
11 Author: Simon McVittie <http://smcv.pseudorandom.co.uk/>
12 Date: Thu Oct 15 20:28:25 2009 +0100
13
14 Fix bug report URL for current bugzilla components
15
16 configure.ac | 2 +-
17 1 files changed, 1 insertions(+), 1 deletions(-)
18
19 commit 38cf99fc56425823b11e486effe3f98c1168a905
20 Author: Simon McVittie <http://smcv.pseudorandom.co.uk/>
21 Date: Thu Oct 15 20:24:58 2009 +0100
22
23 fd.o#24559: flag password parameter as secret
24
25 data/idle.manager | 2 +-
26 src/idle-connection-manager.c | 4 +++-
27 2 files changed, 4 insertions(+), 2 deletions(-)
28
29 commit 7e720131e95683bf96f4b4db0e262ea19b5d8479
30 Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
31 Date: Fri Feb 19 12:11:12 2010 +0000
32
33 Implement Debug interface (fdo #26646)
34
35 src/idle-connection-manager.c | 12 +++++++++
36 src/idle-debug.c | 53 +++++++++++++++++++++++++++++++++++++++++
37 src/idle-debug.h | 2 +
38 src/idle.c | 13 ++++++++-
39 4 files changed, 78 insertions(+), 2 deletions(-)
40
41 commit c52eeda0d4c7a5a99d35fbbf5db49478f6630ad2
42 Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
43 Date: Fri Feb 19 11:46:55 2010 +0000
44
45 idle_debug: refactor to use g_strdup_vprintf
46
47 src/idle-debug.c | 17 ++++++++++-------
48 1 files changed, 10 insertions(+), 7 deletions(-)
49
50 commit a5b64fe0e33eb6e03eaa05eff4946a12445f76eb
51 Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
52 Date: Thu Feb 18 17:40:06 2010 +0000
53
54 Add ourself to remote-pending while joining the channel (fd.o #25039)
55
56 src/idle-muc-channel.c | 12 ++++++++++++
57 1 files changed, 12 insertions(+), 0 deletions(-)
58
59 commit b0b127e4c84cc2c0824d971f6bfca030fd8454ea
60 Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
61 Date: Thu Feb 18 18:06:23 2010 +0000
62
63 Bump tp-glib dep to 0.8.0
64
65 We are going to use tp_intset_new_containing which has been added to 0.7.26
66 but there is no harm to dump to 0.8.
67
68 configure.ac | 2 +-
69 1 files changed, 1 insertions(+), 1 deletions(-)
70
71 commit d2d1f1db61c823124a9eff60ba9746414ac47683
72 Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
73 Date: Thu Feb 18 14:59:28 2010 +0000
74
75 document IDLE_LOGFILE in man page
76
77 src/telepathy-idle.8.in | 7 +++++++
78 1 files changed, 7 insertions(+), 0 deletions(-)
79
80 commit 7e923479272d7ae3d7b66994a5958333fc03b4b0
81 Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
82 Date: Thu Feb 18 14:52:15 2010 +0000
83
84 Add IDLE_LOGFILE support (fd.o #26627)
85
86 src/idle.c | 2 ++
87 1 files changed, 2 insertions(+), 0 deletions(-)
88
89 commit 20d7ecf47f5a731b6b5e76c17c896c2415945f73
90 Author: Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
91 Date: Tue Oct 6 22:46:23 2009 -0500
92
93 Fix two valgrind-reported leaks
94
95 For some reason, we were strduping the channel name needlessly in
96 _channel_normalize_func()
97 Also, we forgot to free the bodies returned from idle_text_encode_and_split()
98
99 src/idle-handles.c | 8 ++------
100 src/idle-text.c | 1 +
101 2 files changed, 3 insertions(+), 6 deletions(-)
102
103 commit 441f063e26ef604926be1e05a073439d758b35fd
104 Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
105 Date: Tue Oct 6 20:45:43 2009 +0100
106
107 idle-connection-manager: remove unused PARAM enum
108
109 src/idle-connection-manager.c | 12 ------------
110 1 files changed, 0 insertions(+), 12 deletions(-)
111
112 commit e746d0b0ff520dfb3f41519da7c38bbecc14ff32
113 Author: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
114 Date: Tue Oct 6 20:44:27 2009 +0100
115
116 idle.manager: add username param
117
118 Param was implemented but has been forget in the manager file for some
119 reason.
120
121 data/idle.manager | 1 +
122 1 files changed, 1 insertions(+), 0 deletions(-)
123
124 commit 0da5af160fe1aee19eaa9f33f5b196bc521b4652
125 Author: Jonny Lamb <jonny.lamb@collabora.co.uk>
126 Date: Mon Sep 14 12:56:58 2009 +0100
127
128 Bump to 0.1.5.1.
129
130 Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
131
132 NEWS | 7 +++++++
133 configure.ac | 2 +-
134 2 files changed, 8 insertions(+), 1 deletions(-)
135
0136 commit ee9c0c816f8bdaa8d4927a365116351b6aad2e48
1137 Author: Jonny Lamb <jonny.lamb@collabora.co.uk>
2138 Date: Mon Sep 14 12:20:01 2009 +0100
0 telepathy-idle 0.1.6 (2010-02-19)
1 =================================
2
3 The “No. Some of it's Cointreau.” release.
4
5 Dependencies:
6
7 * telepathy-glib 0.8.0
8
9 Enhancements:
10
11 * Implement IDLE_LOGFILE to divert output to a file. (cassidy)
12
13 * Implement Debug interface. (cassidy)
14
15 Fixes:
16
17 * Add username parameter to the manager file. (cassidy)
18
19 * Fix some memory leaks. (jonner)
20
21 * Add ourself to remote-pending when creating a room channel.
22 (fd.o #25039, cassidy)
23
24 * Flag password parameter as secret (fd.o #24559, smcv)
25
026 telepathy-idle 0.1.5 (2009-09-14)
127 =================================
228
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
44 # Free Software Foundation, Inc.
55
6 timestamp='2009-06-10'
6 timestamp='2009-04-27'
77
88 # This file is free software; you can redistribute it and/or modify it
99 # under the terms of the GNU General Public License as published by
169169 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
170170 eval $set_cc_for_build
171171 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
172 | grep -q __ELF__
172 | grep __ELF__ >/dev/null
173173 then
174174 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
175175 # Return netbsd for either. FIX?
655655 # => hppa64-hp-hpux11.23
656656
657657 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
658 grep -q __LP64__
658 grep __LP64__ >/dev/null
659659 then
660660 HP_ARCH="hppa2.0w"
661661 else
821821 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
822822 echo i${UNAME_MACHINE}-pc-mks
823823 exit ;;
824 8664:Windows_NT:*)
825 echo x86_64-pc-mks
826 exit ;;
827824 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
828825 # How do we know it's Interix rather than the generic POSIX subsystem?
829826 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
884881 m68*:Linux:*:*)
885882 echo ${UNAME_MACHINE}-unknown-linux-gnu
886883 exit ;;
887 mips:Linux:*:* | mips64:Linux:*:*)
884 mips:Linux:*:*)
888885 eval $set_cc_for_build
889886 sed 's/^ //' << EOF >$dummy.c
890887 #undef CPU
891 #undef ${UNAME_MACHINE}
892 #undef ${UNAME_MACHINE}el
888 #undef mips
889 #undef mipsel
893890 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
894 CPU=${UNAME_MACHINE}el
891 CPU=mipsel
895892 #else
896893 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
897 CPU=${UNAME_MACHINE}
894 CPU=mips
895 #else
896 CPU=
897 #endif
898 #endif
899 EOF
900 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
901 /^CPU/{
902 s: ::g
903 p
904 }'`"
905 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
906 ;;
907 mips64:Linux:*:*)
908 eval $set_cc_for_build
909 sed 's/^ //' << EOF >$dummy.c
910 #undef CPU
911 #undef mips64
912 #undef mips64el
913 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
914 CPU=mips64el
915 #else
916 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
917 CPU=mips64
898918 #else
899919 CPU=
900920 #endif
926946 EV67) UNAME_MACHINE=alphaev67 ;;
927947 EV68*) UNAME_MACHINE=alphaev68 ;;
928948 esac
929 objdump --private-headers /bin/sh | grep -q ld.so.1
949 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
930950 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
931951 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
932952 exit ;;
9801000 elf32-i386)
9811001 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
9821002 ;;
1003 a.out-i386-linux)
1004 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
1005 exit ;;
1006 "")
1007 # Either a pre-BFD a.out linker (linux-gnuoldld) or
1008 # one that does not give us useful --help.
1009 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
1010 exit ;;
9831011 esac
9841012 # Determine whether the default compiler is a.out or elf
9851013 eval $set_cc_for_build
10451073 i*86:syllable:*:*)
10461074 echo ${UNAME_MACHINE}-pc-syllable
10471075 exit ;;
1048 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1076 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
10491077 echo i386-unknown-lynxos${UNAME_RELEASE}
10501078 exit ;;
10511079 i*86:*DOS:*:*)
11531181 rs6000:LynxOS:2.*:*)
11541182 echo rs6000-unknown-lynxos${UNAME_RELEASE}
11551183 exit ;;
1156 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1184 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
11571185 echo powerpc-unknown-lynxos${UNAME_RELEASE}
11581186 exit ;;
11591187 SM[BE]S:UNIX_SV:*:*)
00 #! /bin/sh
11 # Configuration validation subroutine script.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
44 # Free Software Foundation, Inc.
55
6 timestamp='2009-06-11'
6 timestamp='2009-04-17'
77
88 # This file is (in principle) common to ALL GNU software.
99 # The presence of a machine in this file suggests that SOME GNU software
151151 -apple | -axis | -knuth | -cray)
152152 os=
153153 basic_machine=$1
154 ;;
155 -bluegene*)
156 os=-cnk
157154 ;;
158155 -sim | -cisco | -oki | -wec | -winbond)
159156 os=
469466 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
470467 os=-linux
471468 ;;
472 bluegene*)
473 basic_machine=powerpc-ibm
474 os=-cnk
475 ;;
476469 c90)
477470 basic_machine=c90-cray
478471 os=-unicos
12661259 # Each alternative MUST END IN A *, to match a version number.
12671260 # -sysv* is not here because it comes later, after sysvr4.
12681261 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1269 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1262 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
12701263 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
12711264 | -kopensolaris* \
12721265 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
16191612 -sunos*)
16201613 vendor=sun
16211614 ;;
1622 -cnk*|-aix*)
1615 -aix*)
16231616 vendor=ibm
16241617 ;;
16251618 -beos*)
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.64 for telepathy-idle 0.1.5.
2 # Generated by GNU Autoconf 2.64 for telepathy-idle 0.1.6.
33 #
4 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=telepathy-idle>.
4 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=idle>.
55 #
66 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
77 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
228228 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229229 else
230230 $as_echo "$0: Please tell bug-autoconf@gnu.org and
231 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=telepathy-idle
231 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=idle
232232 $0: about your system, including any error possibly output
233233 $0: before this message. Then install a modern shell, or
234234 $0: manually run the script under such a shell if you do
698698 # Identity of this package.
699699 PACKAGE_NAME='telepathy-idle'
700700 PACKAGE_TARNAME='telepathy-idle'
701 PACKAGE_VERSION='0.1.5'
702 PACKAGE_STRING='telepathy-idle 0.1.5'
703 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=telepathy-idle'
701 PACKAGE_VERSION='0.1.6'
702 PACKAGE_STRING='telepathy-idle 0.1.6'
703 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=idle'
704704 PACKAGE_URL=''
705705
706706 # Factoring default headers for most tests.
14461446 # Omit some internal or obsolete options to make the list less imposing.
14471447 # This message is too long to be a string in the A/UX 3.1 sh.
14481448 cat <<_ACEOF
1449 \`configure' configures telepathy-idle 0.1.5 to adapt to many kinds of systems.
1449 \`configure' configures telepathy-idle 0.1.6 to adapt to many kinds of systems.
14501450
14511451 Usage: $0 [OPTION]... [VAR=VALUE]...
14521452
15161516
15171517 if test -n "$ac_init_help"; then
15181518 case $ac_init_help in
1519 short | recursive ) echo "Configuration of telepathy-idle 0.1.5:";;
1519 short | recursive ) echo "Configuration of telepathy-idle 0.1.6:";;
15201520 esac
15211521 cat <<\_ACEOF
15221522
15691569 Use these variables to override the choices made by `configure' or to help
15701570 it to find libraries and programs with nonstandard names/locations.
15711571
1572 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=telepathy-idle>.
1572 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=idle>.
15731573 _ACEOF
15741574 ac_status=$?
15751575 fi
16321632 test -n "$ac_init_help" && exit $ac_status
16331633 if $ac_init_version; then
16341634 cat <<\_ACEOF
1635 telepathy-idle configure 0.1.5
1635 telepathy-idle configure 0.1.6
16361636 generated by GNU Autoconf 2.64
16371637
16381638 Copyright (C) 2009 Free Software Foundation, Inc.
19101910 This file contains any messages produced by compilers while
19111911 running configure, to aid debugging if configure makes a mistake.
19121912
1913 It was created by telepathy-idle $as_me 0.1.5, which was
1913 It was created by telepathy-idle $as_me 0.1.6, which was
19141914 generated by GNU Autoconf 2.64. Invocation command line was
19151915
19161916 $ $0 $@
27372737
27382738 # Define the identity of the package.
27392739 PACKAGE='telepathy-idle'
2740 VERSION='0.1.5'
2740 VERSION='0.1.6'
27412741
27422742
27432743 cat >>confdefs.h <<_ACEOF
1212012120 pkg_cv_TELEPATHY_CFLAGS="$TELEPATHY_CFLAGS"
1212112121 else
1212212122 if test -n "$PKG_CONFIG" && \
12123 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"telepathy-glib >= 0.7.15\""; } >&5
12124 ($PKG_CONFIG --exists --print-errors "telepathy-glib >= 0.7.15") 2>&5
12123 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"telepathy-glib >= 0.8.0\""; } >&5
12124 ($PKG_CONFIG --exists --print-errors "telepathy-glib >= 0.8.0") 2>&5
1212512125 ac_status=$?
1212612126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1212712127 test $ac_status = 0; }; then
12128 pkg_cv_TELEPATHY_CFLAGS=`$PKG_CONFIG --cflags "telepathy-glib >= 0.7.15" 2>/dev/null`
12128 pkg_cv_TELEPATHY_CFLAGS=`$PKG_CONFIG --cflags "telepathy-glib >= 0.8.0" 2>/dev/null`
1212912129 else
1213012130 pkg_failed=yes
1213112131 fi
1213812138 pkg_cv_TELEPATHY_LIBS="$TELEPATHY_LIBS"
1213912139 else
1214012140 if test -n "$PKG_CONFIG" && \
12141 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"telepathy-glib >= 0.7.15\""; } >&5
12142 ($PKG_CONFIG --exists --print-errors "telepathy-glib >= 0.7.15") 2>&5
12141 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"telepathy-glib >= 0.8.0\""; } >&5
12142 ($PKG_CONFIG --exists --print-errors "telepathy-glib >= 0.8.0") 2>&5
1214312143 ac_status=$?
1214412144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1214512145 test $ac_status = 0; }; then
12146 pkg_cv_TELEPATHY_LIBS=`$PKG_CONFIG --libs "telepathy-glib >= 0.7.15" 2>/dev/null`
12146 pkg_cv_TELEPATHY_LIBS=`$PKG_CONFIG --libs "telepathy-glib >= 0.8.0" 2>/dev/null`
1214712147 else
1214812148 pkg_failed=yes
1214912149 fi
1216212162 _pkg_short_errors_supported=no
1216312163 fi
1216412164 if test $_pkg_short_errors_supported = yes; then
12165 TELEPATHY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "telepathy-glib >= 0.7.15"`
12165 TELEPATHY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "telepathy-glib >= 0.8.0"`
1216612166 else
12167 TELEPATHY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "telepathy-glib >= 0.7.15"`
12167 TELEPATHY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "telepathy-glib >= 0.8.0"`
1216812168 fi
1216912169 # Put the nasty error message in config.log where it belongs
1217012170 echo "$TELEPATHY_PKG_ERRORS" >&5
1217112171
12172 as_fn_error "Package requirements (telepathy-glib >= 0.7.15) were not met:
12172 as_fn_error "Package requirements (telepathy-glib >= 0.8.0) were not met:
1217312173
1217412174 $TELEPATHY_PKG_ERRORS
1217512175
1299912999 # report actual input values of CONFIG_FILES etc. instead of their
1300013000 # values after options handling.
1300113001 ac_log="
13002 This file was extended by telepathy-idle $as_me 0.1.5, which was
13002 This file was extended by telepathy-idle $as_me 0.1.6, which was
1300313003 generated by GNU Autoconf 2.64. Invocation command line was
1300413004
1300513005 CONFIG_FILES = $CONFIG_FILES
1305813058 Configuration commands:
1305913059 $config_commands
1306013060
13061 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=telepathy-idle>."
13061 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=idle>."
1306213062
1306313063 _ACEOF
1306413064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1306513065 ac_cs_version="\\
13066 telepathy-idle config.status 0.1.5
13066 telepathy-idle config.status 0.1.6
1306713067 configured by $0, generated by GNU Autoconf 2.64,
1306813068 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1306913069
1010
1111 m4_define([idle_major_version], [0])
1212 m4_define([idle_minor_version], [1])
13 m4_define([idle_micro_version], [5])
13 m4_define([idle_micro_version], [6])
1414 m4_define([idle_nano_version], [0])
1515
1616 m4_define([idle_base_version],
2121 [idle_base_version].[idle_nano_version])])
2222
2323 AC_INIT([telepathy-idle], [idle_version],
24 [https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=telepathy-idle])
24 [https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=idle])
2525
2626 AC_CONFIG_MACRO_DIR([m4])
2727
8484 AC_SUBST(DBUS_CFLAGS)
8585 AC_SUBST(DBUS_LIBS)
8686
87 PKG_CHECK_MODULES(TELEPATHY, [telepathy-glib >= 0.7.15])
87 PKG_CHECK_MODULES(TELEPATHY, [telepathy-glib >= 0.8.0])
8888
8989 AC_SUBST(TELEPATHY_CFLAGS)
9090 AC_SUBST(TELEPATHY_LIBS)
66 param-account = s required
77 param-server = s required
88 param-fullname = s
9 param-username = s
910 param-port = q
10 param-password = s
11 param-password = s secret
1112 param-charset = s
1213 param-quit-message = s
1314 param-use-ssl = b
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2009-04-28.21; # UTC
3 scriptversion=2006-12-25.00
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
514514 # eval: (add-hook 'write-file-hooks 'time-stamp)
515515 # time-stamp-start: "scriptversion="
516516 # time-stamp-format: "%:y-%02m-%02d.%02H"
517 # time-stamp-time-zone: "UTC"
518 # time-stamp-end: "; # UTC"
517 # time-stamp-end: "$"
519518 # End:
2525
2626 #include "idle-connection.h"
2727 #include "idle-handles.h" /* to check for valid nick */
28 #include "idle-debug.h"
2829
2930 G_DEFINE_TYPE(IdleConnectionManager, idle_connection_manager, TP_TYPE_BASE_CONNECTION_MANAGER)
3031
6162 g_slice_free(Params, params);
6263 }
6364
64 enum {
65 PARAM_ACCOUNT,
66 PARAM_SERVER,
67 PARAM_PORT,
68 PARAM_PASSWORD,
69 PARAM_FULLNAME,
70 PARAM_CHARSET,
71 PARAM_QUIT_MESSAGE,
72 PARAM_USE_SSL,
73 LAST_PARAM
74 };
75
7665 gboolean
7766 filter_nick(const TpCMParamSpec *paramspec, GValue *value, GError **error)
7867 {
9281 {"account", DBUS_TYPE_STRING_AS_STRING, G_TYPE_STRING, TP_CONN_MGR_PARAM_FLAG_REQUIRED, NULL, G_STRUCT_OFFSET(Params, account), filter_nick},
9382 {"server", DBUS_TYPE_STRING_AS_STRING, G_TYPE_STRING, TP_CONN_MGR_PARAM_FLAG_REQUIRED, NULL, G_STRUCT_OFFSET(Params, server)},
9483 {"port", DBUS_TYPE_UINT16_AS_STRING, G_TYPE_UINT, TP_CONN_MGR_PARAM_FLAG_HAS_DEFAULT, GINT_TO_POINTER(6667), G_STRUCT_OFFSET(Params, port)},
95 {"password", DBUS_TYPE_STRING_AS_STRING, G_TYPE_STRING, 0, NULL, G_STRUCT_OFFSET(Params, password)},
84 {"password", DBUS_TYPE_STRING_AS_STRING, G_TYPE_STRING,
85 TP_CONN_MGR_PARAM_FLAG_SECRET,
86 NULL, G_STRUCT_OFFSET(Params, password)},
9687 {"fullname", DBUS_TYPE_STRING_AS_STRING, G_TYPE_STRING, 0, NULL, G_STRUCT_OFFSET(Params, fullname)},
9788 {"username", DBUS_TYPE_STRING_AS_STRING, G_TYPE_STRING, 0, NULL, G_STRUCT_OFFSET(Params, username)},
9889 {"charset", DBUS_TYPE_STRING_AS_STRING, G_TYPE_STRING, TP_CONN_MGR_PARAM_FLAG_HAS_DEFAULT, "UTF-8", G_STRUCT_OFFSET(Params, charset)},
111102 static void idle_connection_manager_init(IdleConnectionManager *obj) {
112103 }
113104
105 static void
106 idle_connection_manager_finalize (GObject *object)
107 {
108 idle_debug_free ();
109
110 G_OBJECT_CLASS (idle_connection_manager_parent_class)->finalize (object);
111 }
112
114113 static void idle_connection_manager_class_init(IdleConnectionManagerClass *klass) {
114 GObjectClass *object_class = G_OBJECT_CLASS (klass);
115115 TpBaseConnectionManagerClass *parent_class = TP_BASE_CONNECTION_MANAGER_CLASS(klass);
116116
117117 parent_class->new_connection = _iface_new_connection;
118118 parent_class->cm_dbus_name = "idle";
119119 parent_class->protocol_params = _protocols;
120
121 object_class->finalize = idle_connection_manager_finalize;
120122 }
121123
122124 static TpBaseConnection *_iface_new_connection(TpBaseConnectionManager *self, const gchar *proto, TpIntSet *params_present, void *parsed_params, GError **error) {
2020
2121 #include <stdarg.h>
2222 #include <telepathy-glib/debug.h>
23 #include <telepathy-glib/debug-sender.h>
2324
2425 static IdleDebugFlags _flags = 0;
2526
4849 tp_debug_set_persistent(TRUE);
4950 }
5051
51 void idle_debug(IdleDebugFlags flag, const gchar *format, ...) {
52 if (!(_flags & flag))
52 GHashTable *flag_to_domains = NULL;
53
54 static const gchar *
55 debug_flag_to_domain (IdleDebugFlags flag)
56 {
57 if (G_UNLIKELY (flag_to_domains == NULL)) {
58 guint i;
59
60 flag_to_domains = g_hash_table_new_full (NULL, NULL, NULL, g_free);
61
62 for (i = 0; _keys[i].value; i++) {
63 GDebugKey key = _keys[i];
64 gchar *val;
65
66 val = g_strdup_printf ("%s/%s", "idle", key.key);
67 g_hash_table_insert (flag_to_domains,
68 GUINT_TO_POINTER (key.value), val);
69 }
70 }
71
72 return g_hash_table_lookup (flag_to_domains, GUINT_TO_POINTER (flag));
73 }
74
75 void
76 idle_debug_free (void)
77 {
78 if (flag_to_domains == NULL)
5379 return;
5480
55 va_list args;
56 va_start(args, format);
57 g_logv(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, format, args);
58 va_end(args);
81 g_hash_table_destroy (flag_to_domains);
82 flag_to_domains = NULL;
5983 }
6084
85 static void
86 log_to_debug_sender (IdleDebugFlags flag,
87 const gchar *message)
88 {
89 TpDebugSender *dbg;
90 GTimeVal now;
91
92 dbg = tp_debug_sender_dup ();
93
94 g_get_current_time (&now);
95
96 tp_debug_sender_add_message (dbg, &now, debug_flag_to_domain (flag),
97 G_LOG_LEVEL_DEBUG, message);
98
99 g_object_unref (dbg);
100 }
101
102 void idle_debug(IdleDebugFlags flag, const gchar *format, ...) {
103 gchar *message;
104 va_list args;
105
106 va_start (args, format);
107 message = g_strdup_vprintf (format, args);
108 va_end (args);
109
110 log_to_debug_sender (flag, message);
111
112 if (_flags & flag)
113 g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s", message);
114
115 g_free (message);
116 }
3434 void idle_debug_init();
3535 void idle_debug(IdleDebugFlags flag, const gchar *format, ...) G_GNUC_PRINTF(2, 3);
3636
37 void idle_debug_free (void);
38
3739 #endif
3840
3941 #ifdef IDLE_DEBUG_FLAG
138138 }
139139
140140 static gchar *_channel_normalize_func(TpHandleRepoIface *repo, const gchar *id, gpointer ctx, GError **error) {
141 gchar *channel = g_strdup(id);
142
143 if (!_channelname_is_valid(channel)) {
141 if (!_channelname_is_valid(id)) {
144142 g_set_error(error, TP_ERRORS, TP_ERROR_INVALID_HANDLE, "invalid channel ID");
145143 return NULL;
146144 }
147145
148 gchar *normalized = g_utf8_strdown(channel, -1);
149
150 g_free(channel);
146 gchar *normalized = g_utf8_strdown(id, -1);
151147
152148 return normalized;
153149 }
304304 TP_CHANNEL_TEXT_MESSAGE_TYPE_ACTION,
305305 TP_CHANNEL_TEXT_MESSAGE_TYPE_NOTICE,
306306 G_MAXUINT);
307
308 if (priv->requested) {
309 /* Add ourself to 'remote-pending' while we are joining the channel */
310 TpIntSet *remote;
311
312 g_assert (priv->initiator == priv->connection->parent.self_handle);
313
314 remote = tp_intset_new_containing (priv->initiator);
315 tp_group_mixin_change_members (obj, "", NULL, NULL, NULL, remote,
316 priv->initiator, TP_CHANNEL_GROUP_CHANGE_REASON_NONE);
317 tp_intset_destroy (remote);
318 }
307319
308320 return obj;
309321 }
181181 }
182182
183183 g_strfreev(messages);
184 g_strfreev(bodies);
184185
185186 tp_svc_channel_type_text_return_from_send(context);
186187 }
2121
2222 #include <telepathy-glib/run.h>
2323 #include <telepathy-glib/debug.h>
24 #include <telepathy-glib/debug-sender.h>
2425
2526 #include "idle-connection-manager.h"
2627 #include "idle-debug.h"
3233 }
3334
3435 int main(int argc, char **argv) {
36 TpDebugSender *debug_sender;
37 int result;
38
39 g_type_init ();
40 tp_debug_divert_messages (g_getenv ("IDLE_LOGFILE"));
41
3542 idle_debug_init();
3643
37 return tp_run_connection_manager("telepathy-idle", VERSION, _construct_cm, argc, argv);
44 debug_sender = tp_debug_sender_dup ();
45
46 result = tp_run_connection_manager("telepathy-idle", VERSION, _construct_cm, argc, argv);
47
48 g_object_unref (debug_sender);
49 return result;
3850 }
39
1919 There are no command-line options.
2020 .SH ENVIRONMENT
2121 .TP
22 \fBIDLE_LOGFILE\fR=\fIfilename\fR
23 If set, debug output will go to the given file rather than to stderr.
24 If \fB+\fR is prepended to the \fIfilename\fR (e.g.
25 \fBIDLE_LOGFILE=+idle.log\fR), debug output will be appended
26 to the file; otherwise, any existing file will be replaced.
27 .TP
28 .TP
2229 \fBIDLE_DEBUG\fR=\fItype\fR
2330 May be set to "all" for full debug output, or various undocumented options
2431 (which may change from release to release) to filter the output.