Changes in / [f1cf01c:3d952b5]
- Files:
-
- 21 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
rf1cf01c r3d952b5 27 27 subdirobjs = $(foreach dir,$(subdirs),$(dir)/$(dir).o) 28 28 29 all: $(OUTFILE) $(OTR_PI) systemd29 all: $(OUTFILE) $(OTR_PI) $(SKYPE_PI) systemd 30 30 $(MAKE) -C doc 31 ifdef SKYPE_PI 32 $(MAKE) -C protocols/skype doc 33 endif 31 34 32 35 uninstall: uninstall-bin uninstall-doc … … 71 74 install-doc: 72 75 $(MAKE) -C doc install 76 ifdef SKYPE_PI 77 $(MAKE) -C protocols/skype install-doc 78 endif 73 79 74 80 uninstall-doc: 75 81 $(MAKE) -C doc uninstall 82 ifdef SKYPE_PI 83 $(MAKE) -C protocols/skype uninstall-doc 84 endif 76 85 77 86 install-bin: … … 109 118 install -m 0755 otr.so $(DESTDIR)$(PLUGINDIR) 110 119 endif 120 ifdef SKYPE_PI 121 mkdir -p $(DESTDIR)$(PLUGINDIR) 122 install -m 0755 skype.so $(DESTDIR)$(PLUGINDIR) 123 mkdir -p $(DESTDIR)$(ETCDIR)/../skyped 124 install -m 0644 $(SRCDIR)protocols/skype/skyped.cnf $(DESTDIR)$(ETCDIR)/../skyped/skyped.cnf 125 install -m 0644 $(SRCDIR)protocols/skype/skyped.conf $(DESTDIR)$(ETCDIR)/../skyped/skyped.conf 126 install -m 0755 $(SRCDIR)protocols/skype/skyped.py $(DESTDIR)$(BINDIR)/skyped 127 endif 111 128 112 129 systemd: … … 141 158 @$(CC) $(CFLAGS) $(OTRFLAGS) -fPIC -shared $(LDFLAGS) $< -o $@ 142 159 160 $(SKYPE_PI): $(SRCDIR)protocols/skype/skype.c 161 @echo '*' Building plugin skype 162 @$(CC) $(CFLAGS) -fPIC -shared $< -o $@ 163 143 164 $(objects): %.o: $(SRCDIR)%.c 144 165 @echo '*' Compiling $< -
configure
rf1cf01c r3d952b5 36 36 plugins=1 37 37 otr=0 38 skype=0 38 39 39 40 events=glib … … 83 84 --otr=0/1/auto/plugin 84 85 Disable/enable OTR encryption support $otr 86 --skype=0/1/plugin 87 Disable/enable Skype support $skype 85 88 86 89 --events=... Event handler (glib, libevent) $events … … 109 112 ipcsocket=`eval echo "$ipcsocket" | sed 's/\/\{1,\}/\//g'` 110 113 pcdir=`eval echo "$pcdir" | sed 's/\/\{1,\}/\//g'` 114 115 protocols_mods="" 111 116 112 117 cat<<EOF>Makefile.settings … … 538 543 fi 539 544 545 if [ "$skype" = "1" -o "$skype" = "plugin" ]; then 546 echo 'SKYPE_PI=skype.so' >> Makefile.settings 547 protocols_mods="$protocol_mods skype(plugin)" 548 fi 549 540 550 if [ ! -e doc/user-guide/help.txt ] && ! type xmlto > /dev/null 2> /dev/null; then 541 551 echo … … 751 761 752 762 if [ -n "$protocols" ]; then 753 echo ' Building with these protocols:' $protocols 763 echo ' Building with these protocols:' $protocols$protocols_mods 754 764 case "$protocols" in 755 765 *purple*) -
lib/misc.c
rf1cf01c r3d952b5 400 400 cd = g_iconv_open( to_cs, from_cs ); 401 401 if( cd == (GIConv) -1 ) 402 return ( -1 );402 return -1; 403 403 404 404 inbytesleft = size ? size : strlen( src ); … … 408 408 g_iconv_close( cd ); 409 409 410 if( res == (size_t) -1)411 return ( -1 );410 if( res != 0 ) 411 return -1; 412 412 else 413 return ( outbuf - dst );413 return outbuf - dst; 414 414 } 415 415 -
lib/proxy.c
rf1cf01c r3d952b5 85 85 closesocket(source); 86 86 dup2(new_fd, source); 87 closesocket(new_fd); 87 88 phb->inpa = b_input_add(source, B_EV_IO_WRITE, gaim_io_connected, phb); 88 89 return FALSE;
Note: See TracChangeset
for help on using the changeset viewer.