Libgadu commit list | 15 Feb 2013 00:58

r1329 - in trunk: include src

Author: wojtekka
Date: 2013-02-15 00:58:26 +0100 (Fri, 15 Feb 2013)
New Revision: 1329

Modified:
   trunk/include/internal.h
   trunk/include/libgadu.h.in
   trunk/include/protocol.h
   trunk/src/common.c
   trunk/src/handlers.c
   trunk/src/libgadu.c
   trunk/src/tvbuilder.c
Log:
Dalsza część integracji http://hg.pidgin.im/cpw/tomkiewicz/gg11-libgadu (Tomasz Wasilczyk)

Modified: trunk/include/internal.h
===================================================================
--- trunk/include/internal.h	2013-01-30 22:14:59 UTC (rev 1328)
+++ trunk/include/internal.h	2013-02-14 23:58:26 UTC (rev 1329)
 <at>  <at>  -54,7 +54,6  <at>  <at> 
 struct gg_chat_list *gg_chat_find(struct gg_session *sess, uint64_t id);

 uin_t gg_str_to_uin(const char *str, int len);
-const char * gg_uin_to_str(uin_t uin);

 uint64_t gg_fix64(uint64_t x);

Modified: trunk/include/libgadu.h.in
===================================================================
--- trunk/include/libgadu.h.in	2013-01-30 22:14:59 UTC (rev 1328)
(Continue reading)

Libgadu commit list | 30 Jan 2013 23:15

r1328 - trunk/src

Author: wojtekka
Date: 2013-01-30 23:14:59 +0100 (Wed, 30 Jan 2013)
New Revision: 1328

Added:
   trunk/src/tvbuff.c
   trunk/src/tvbuilder.c
Modified:
   trunk/src/Makefile.am
   trunk/src/message.c
Log:
Kontynuacja integracji http://hg.pidgin.im/cpw/tomkiewicz/gg11-libgadu (Tomasz Wasilczyk)

Modified: trunk/src/Makefile.am
===================================================================
--- trunk/src/Makefile.am	2013-01-30 21:55:20 UTC (rev 1327)
+++ trunk/src/Makefile.am	2013-01-30 22:14:59 UTC (rev 1328)
 <at>  <at>  -1,5 +1,5  <at>  <at> 
 lib_LTLIBRARIES = libgadu.la
-libgadu_la_SOURCES = common.c dcc.c dcc7.c debug.c deflate.c encoding.c endian.c events.c
handlers.c http.c libgadu.c message.c network.c obsolete.c pubdir.c pubdir50.c resolver.c sha1.c
+libgadu_la_SOURCES = common.c dcc.c dcc7.c debug.c deflate.c encoding.c endian.c events.c
handlers.c http.c libgadu.c message.c network.c obsolete.c pubdir.c pubdir50.c resolver.c sha1.c
tvbuff.c tvbuilder.c
 libgadu_la_CFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include -DGG_IGNORE_DEPRECATED
 libgadu_la_LDFLAGS = -version-number 3:13 -export-symbols $(srcdir)/libgadu.sym  <at> MINGW_LDFLAGS <at> 
 EXTRA_DIST = libgadu.sym

Modified: trunk/src/message.c
===================================================================
(Continue reading)

Libgadu commit list | 30 Jan 2013 22:55

r1327 - in trunk: include src

Author: wojtekka
Date: 2013-01-30 22:55:20 +0100 (Wed, 30 Jan 2013)
New Revision: 1327

Modified:
   trunk/include/internal.h
   trunk/include/libgadu.h.in
   trunk/src/common.c
   trunk/src/events.c
   trunk/src/libgadu.c
   trunk/src/libgadu.sym
Log:
Kontynuacja integracji http://hg.pidgin.im/cpw/tomkiewicz/gg11-libgadu (Tomasz Wasilczyk)

Modified: trunk/include/internal.h
===================================================================
--- trunk/include/internal.h	2013-01-29 22:06:19 UTC (rev 1326)
+++ trunk/include/internal.h	2013-01-30 21:55:20 UTC (rev 1327)
 <at>  <at>  -50,8 +50,8  <at>  <at> 

 int gg_login_hash_sha1_2(const char *password, uint32_t seed, uint8_t *result);

-int gg_chat_update(struct gg_session *sess, uint64_t id, uint32_t version, const uin_t
*participants, int participants_count);
-struct gg_chat_list * gg_chat_find(struct gg_session *sess, uint64_t id);
+int gg_chat_update(struct gg_session *sess, uint64_t id, uint32_t version, const uin_t
*participants, unsigned int participants_count);
+struct gg_chat_list *gg_chat_find(struct gg_session *sess, uint64_t id);

 uin_t gg_str_to_uin(const char *str, int len);
(Continue reading)

Libgadu commit list | 29 Jan 2013 22:46

r1325 - in trunk: . include src test/automatic

Author: wojtekka
Date: 2013-01-29 22:46:41 +0100 (Tue, 29 Jan 2013)
New Revision: 1325

Modified:
   trunk/README
   trunk/configure.ac
   trunk/include/internal.h
   trunk/include/libgadu.h.in
   trunk/src/dcc.c
   trunk/src/dcc7.c
   trunk/src/endian.c
   trunk/test/automatic/endian1.c
Log:
Wymagamy 64-bitowych zmiennych. Za chwilę będa potrzebne do GG11.

Modified: trunk/README
===================================================================
--- trunk/README	2012-09-24 02:36:24 UTC (rev 1324)
+++ trunk/README	2013-01-29 21:46:41 UTC (rev 1325)
 <at>  <at>  -1,5 +1,5  <at>  <at> 
 libgadu 1.12.0-pre
-(C) Copyright 2001-2011 Autorzy (pełna lista w pliku AUTHORS)
+(C) Copyright 2001-2013 Autorzy (pełna lista w pliku AUTHORS)

 libgadu jest biblioteką przeznaczoną do obsługi protokołu komunikatora
 Gadu-Gadu. Przez dłuższy czas była integralną częścią Eksperymentalnego
 <at>  <at>  -40,9 +40,6  <at>  <at> 
 z programami na licencji GPL. Minimalna wymagana wersja biblioteki
 OpenSSL to 0.9.7, a biblioteki GnuTLS 2.10.0.
(Continue reading)

Libgadu commit list | 29 Jan 2013 23:06

r1326 - in trunk: include src test/automatic/script

Author: wojtekka
Date: 2013-01-29 23:06:19 +0100 (Tue, 29 Jan 2013)
New Revision: 1326

Added:
   trunk/include/tvbuff.h
   trunk/include/tvbuilder.h
Modified:
   trunk/include/Makefile.am
   trunk/include/internal.h
   trunk/include/libgadu.h.in
   trunk/include/message.h
   trunk/include/protocol.h
   trunk/src/debug.c
   trunk/test/automatic/script/00-login.scr
Log:
Początek integracji http://hg.pidgin.im/cpw/tomkiewicz/gg11-libgadu (Tomasz Wasilczyk)

Modified: trunk/include/Makefile.am
===================================================================
--- trunk/include/Makefile.am	2013-01-29 21:46:41 UTC (rev 1325)
+++ trunk/include/Makefile.am	2013-01-29 22:06:19 UTC (rev 1326)
 <at>  <at>  -1,2 +1,2  <at>  <at> 
 nodist_include_HEADERS = libgadu.h
-noinst_HEADERS = debug.h deflate.h encoding.h fileio.h internal.h message.h network.h protocol.h
resolver.h session.h strman.h
+noinst_HEADERS = debug.h deflate.h encoding.h fileio.h internal.h message.h network.h protocol.h
resolver.h session.h strman.h tvbuff.h tvbuilder.h

Modified: trunk/include/internal.h
(Continue reading)

Libgadu commit list | 24 Sep 2012 04:36

r1324 - in trunk: src test/automatic

Author: beevvy
Date: 2012-09-24 04:36:24 +0200 (Mon, 24 Sep 2012)
New Revision: 1324

Modified:
   trunk/src/libgadu.c
   trunk/test/automatic/packet.c
Log:
Popraw obsługę EAGAIN w GnuTLS

Wcześniej w praktyce blokowaliśmy, dopóki czegoś nam serwer nie wysłał.
Czyli na przykład ekstra wywołanie gg_watch_fd() skutkowało zwisem do
momentu otrzymania czegoś od serwera, również przy połączeniu asynchro-
nicznym.

Sprawdziłem również OpenSSL i tam jest OK.

Modified: trunk/src/libgadu.c
===================================================================
--- trunk/src/libgadu.c	2012-08-31 01:23:39 UTC (rev 1323)
+++ trunk/src/libgadu.c	2012-09-24 02:36:24 UTC (rev 1324)
 <at>  <at>  -199,11 +199,10  <at>  <at> 
 			res = gnutls_record_recv(GG_SESSION_GNUTLS(sess), buf, length);

 			if (res < 0) {
-				if (!gnutls_error_is_fatal(res) || res == GNUTLS_E_INTERRUPTED)
-					continue;
-
 				if (res == GNUTLS_E_AGAIN)
 					errno = EAGAIN;
(Continue reading)

Libgadu commit list | 31 Aug 2012 03:23

r1316 - in trunk/test: . automatic

Author: beevvy
Date: 2012-08-31 03:23:01 +0200 (Fri, 31 Aug 2012)
New Revision: 1316

Modified:
   trunk/test/automatic/Makefile.am
   trunk/test/valgrind
Log:
Ulepsz trochę nazwę loga z valgrinda

Modified: trunk/test/automatic/Makefile.am
===================================================================
--- trunk/test/automatic/Makefile.am	2012-08-31 01:22:56 UTC (rev 1315)
+++ trunk/test/automatic/Makefile.am	2012-08-31 01:23:01 UTC (rev 1316)
 <at>  <at>  -35,7 +35,7  <at>  <at> 
 	$(PERL) script/compile script/*.scr > script/script.c

 clean-local:
-	rm -f *.html *.log *-valgrind script/script.c
+	rm -f *-valgrind.log *-valgrind script/script.c

 check-local:	$(check_PROGRAMS)
 	for i in $(check_PROGRAMS); do ln -sf ../valgrind $${i}-valgrind; done

Modified: trunk/test/valgrind
===================================================================
--- trunk/test/valgrind	2012-08-31 01:22:56 UTC (rev 1315)
+++ trunk/test/valgrind	2012-08-31 01:23:01 UTC (rev 1316)
 <at>  <at>  -17,7 +17,7  <at>  <at> 
 done
(Continue reading)

Libgadu commit list | 31 Aug 2012 03:23

r1320 - trunk/test/automatic

Author: beevvy
Date: 2012-08-31 03:23:22 +0200 (Fri, 31 Aug 2012)
New Revision: 1320

Modified:
   trunk/test/automatic/connect.c
Log:
Bądź paranoiczny jeśli chodzi o potencjalne błędy w teście connect

Wygląda to okropnie, ale trudno.

Modified: trunk/test/automatic/connect.c
===================================================================
--- trunk/test/automatic/connect.c	2012-08-31 01:23:18 UTC (rev 1319)
+++ trunk/test/automatic/connect.c	2012-08-31 01:23:22 UTC (rev 1320)
 <at>  <at>  -92,6 +92,13  <at>  <at> 
 #define KEY_FILE "connect.pem"
 #endif

+static void failure(void) __attribute__ ((noreturn));
+
+static void failure(void)
+{
+	exit(1);
+}
+
 static test_param_t *get_test_param(void)
 {
 	static test_param_t test = { false };
 <at>  <at>  -112,7 +119,10  <at>  <at> 
(Continue reading)

Libgadu commit list | 31 Aug 2012 03:23

r1323 - trunk/test/automatic

Author: beevvy
Date: 2012-08-31 03:23:39 +0200 (Fri, 31 Aug 2012)
New Revision: 1323

Modified:
   trunk/test/automatic/connect.c
Log:
Popraw implementację timeoutu w connect()

Pod FreeBSD po kolejnych próbach connect()owania się pod
server_ports[PORT_TIMEOUT] odmawia współpracy, dostajemy ECONNRESET
i nici z timeoutu. Właściwie to dziwne, że na Linuksie to wydawało się
działać, bo rzeczywiście jawnie podajemy w listen(), żeby system
kolejkował nam tylko jedno połączenie. Można by oczywiście przed każdym
testem czyścić kolejkę za pomocą accept() (bo inaczej się nie da, nie?),
ale to przy aktualnej implementacji zbędne.

Przy okazji powinno to nieco przyśpieszyć test.

Mam nadzieję, że moja łatka jest poprawna.

Modified: trunk/test/automatic/connect.c
===================================================================
--- trunk/test/automatic/connect.c	2012-08-31 01:23:32 UTC (rev 1322)
+++ trunk/test/automatic/connect.c	2012-08-31 01:23:39 UTC (rev 1323)
 <at>  <at>  -43,7 +43,6  <at>  <at> 
 	PORT_8074,
 	PORT_8080,
 	PORT_CLOSED,
-	PORT_TIMEOUT,
(Continue reading)

Libgadu commit list | 31 Aug 2012 03:23

r1319 - trunk/test/automatic

Author: beevvy
Date: 2012-08-31 03:23:18 +0200 (Fri, 31 Aug 2012)
New Revision: 1319

Modified:
   trunk/test/automatic/connect.c
Log:
Popraw test connect pod GNU/Hurd

Wygląda na to, że pod GNU/Hurd select() dość często się nie udaje
i dostajemy EINTR (mimo że nie mamy własnej obsługi sygnałów). Za to
inne funkcje zdają się nie dostawać EINTR. Albo po prostu za mało
próbowałem, bo w select() możemy siedzieć znacznie dłużej niż
w pozostałych funkcjach.

Modified: trunk/test/automatic/connect.c
===================================================================
--- trunk/test/automatic/connect.c	2012-08-31 01:23:14 UTC (rev 1318)
+++ trunk/test/automatic/connect.c	2012-08-31 01:23:18 UTC (rev 1319)
 <at>  <at>  -412,6 +412,8  <at>  <at> 
 				gg_free_session(gs);
 				return false;
 			}
+			if (res == -1)
+				continue;

 			if (FD_ISSET(timeout_pipe[0], &rd)) {
 				if (read(timeout_pipe[0], &tmp, 1) == -1) {
 <at>  <at>  -612,6 +614,8  <at>  <at> 
 //XXX			kill(getppid(), SIGTERM);
(Continue reading)

Libgadu commit list | 31 Aug 2012 03:23

r1321 - in trunk: . test/automatic test/manual

Author: beevvy
Date: 2012-08-31 03:23:27 +0200 (Fri, 31 Aug 2012)
New Revision: 1321

Modified:
   trunk/configure.ac
   trunk/test/automatic/Makefile.am
   trunk/test/manual/Makefile.am
Log:
Do not try to compile dcc7 manual test on non-glibc systems (Daniel Macks)

Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2012-08-31 01:23:22 UTC (rev 1320)
+++ trunk/configure.ac	2012-08-31 01:23:27 UTC (rev 1321)
 <at>  <at>  -275,14 +275,16  <at>  <at> 
 dnl

 AC_SUBST([SUBDIRS_TEST])
-AC_SUBST([OPTIONAL_TESTS_GLIBC])
-AC_SUBST([OPTIONAL_TESTS_GLIBC_GNUTLS])
+AC_SUBST([OPTIONAL_TESTS_AUTOMATIC_GLIBC])
+AC_SUBST([OPTIONAL_TESTS_AUTOMATIC_GLIBC_GNUTLS])
+AC_SUBST([OPTIONAL_TESTS_MANUAL_GLIBC])
 AC_SUBST([OPTIONAL_TESTS_PERL])
 AC_SUBST([OPTIONAL_TESTS_VOICE7])
 AC_SUBST([OPTIONAL_TESTS_SEARCH])
 SUBDIRS_TEST=""
-OPTIONAL_TESTS_GLIBC=""
-OPTIONAL_TESTS_GLIBC_GNUTLS=""
(Continue reading)


Gmane