Commit a9d806a52f8c6522a99017a499b44528973d0945

Authored by Matti Virkkunen
1 parent 049c36bf

Removed included thrift file

.gitignore
1 1 thrift_line
  2 +line_main.thrift
2 3 *.o
3 4 libline.so
4 5 .depend
... ...
Makefile
... ... @@ -6,7 +6,8 @@ LIBS = `pkg-config --libs purple thrift`
6 6  
7 7 MAIN = libline.so
8 8  
9   -GEN_SRCS = thrift_line/line_constants.cpp thrift_line/line_types.cpp thrift_line/TalkService.cpp
  9 +GEN_SRCS = thrift_line/line_main_constants.cpp thrift_line/line_main_types.cpp \
  10 + thrift_line/TalkService.cpp
10 11 REAL_SRCS = pluginmain.cpp linehttptransport.cpp thriftclient.cpp httpclient.cpp \
11 12 purpleline.cpp purpleline_blist.cpp \
12 13 poller.cpp pinverifier.cpp
... ... @@ -23,9 +24,9 @@ $(MAIN): $(OBJS)
23 24 .cpp.o:
24 25 $(CXX) $(CXXFLAGS) -std=c++11 -c $< -o $@
25 26  
26   -thrift_line: line.thrift
  27 +thrift_line: line_main.thrift
27 28 mkdir -p thrift_line
28   - thrift --gen cpp -out thrift_line line.thrift
  29 + thrift --gen cpp -out thrift_line line_main.thrift
29 30  
30 31 clean:
31 32 rm -f $(MAIN)
... ...
README.md
... ... @@ -5,22 +5,29 @@ purple-line
5 5  
6 6 libpurple (Pidgin, Finch) protocol plugin for LINE (http://line.me/) by Naver / LINE Corporation.
7 7  
8   -The LINE protocol is closed, proprietary and there is no public API nor a truly cross-platform client (how lame!). Therefore, I'm seeing if I can implement a usable libpurple plugin for it and I'm documenting the protocol as I go (documentation at https://github.com/mvirkkunen/line-protocol/)
9   -
10 8 Does it work?
11 9 -------------
12 10  
13   -Yes, to an extent. Here's Pidgin logged in to LINE, but it's not quite stable and featureful enough to be used as one's main LINE client yet.
  11 +Yes, to an extent. Here's Pidgin logged in to LINE, but it's not quite stable and featureful enough
  12 +to be used as one's main LINE client yet.
14 13  
15 14 ![Screenshot](http://virkkunen.net/b/pidgin-line2.png)
16 15  
17 16 How to install
18 17 --------------
19 18  
  19 +Make sure you have the required prerequisites:
  20 +
  21 +* libpurple - probably available via package manager
  22 +* Apache Thrift compiler and C++ library
  23 +* line_main.thrift - not included, must be placed in the project root directory. For the time being,
  24 + you can acquire this file from the documentation at /
  25 +
20 26 make
21 27 make install
22 28  
23   -This will build and install the plugin into your home directory. The prerequisites are a recent C++ compiler, the Apache Thrift compiler and libraries, and libpurple. Builds are only tested on Arch Linux for now.
  29 +This will build and install the plugin into your home directory. Builds are only tested on Arch
  30 +Linux and a recent Ubuntu for now.
24 31  
25 32 Easy to install packages will not be available until I get all the main features implemented.
26 33  
... ...
linehttptransport.cpp
... ... @@ -5,7 +5,7 @@
5 5  
6 6 #include <thrift/transport/TTransportException.h>
7 7  
8   -#include "thrift_line/line_types.h"
  8 +#include "thrift_line/TalkService.h"
9 9  
10 10 #include "constants.hpp"
11 11 #include "linehttptransport.hpp"
... ...
thriftclient.hpp
... ... @@ -11,8 +11,6 @@
11 11 #include <prpl.h>
12 12  
13 13 #include "thrift_line/TalkService.h"
14   -#include "thrift_line/line_types.h"
15   -#include "thrift_line/line_constants.h"
16 14  
17 15 #include "linehttptransport.hpp"
18 16  
... ...