X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxserver.h;h=18623578d81294a1bb72d0cfbdfcf0cadff38dc4;hb=969ab85d985485f503790cb13f98a582d4e1cdb5;hp=eb36be249476f93441cf34ca79d4551297390dc9;hpb=44cd0fc9a1687cc63911c7f98d978594458e7813;p=lyx.git diff --git a/src/lyxserver.h b/src/lyxserver.h index eb36be2494..18623578d8 100644 --- a/src/lyxserver.h +++ b/src/lyxserver.h @@ -15,6 +15,9 @@ #include + +namespace lyx { + class LyXFunc; class LyXServer; @@ -58,14 +61,10 @@ public: private: /// the filename of the in pipe - std::string const inPipeName() { - return pipename + ".in"; - } + std::string const inPipeName() const; /// the filename of the out pipe - std::string const outPipeName() { - return pipename + ".out"; - } + std::string const outPipeName() const; /// Open pipes void openConnection(); @@ -144,6 +143,12 @@ private: LyXComm pipes; }; +/// Implementation is in lyx_main.C +extern LyXServer & theLyXServer(); + + +} // namespace lyx + #endif /* _LYXSERVER_H_ */ /* === End of File: lyxserver.h ========================================== */