mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
396cb8861a
* src/support/tempname.C (tempName): Return FileName in utf8 encoding. * src/lyxsocket.[Ch] (LyXServerSocket::LyXServerSocket): Use FileName instead of string and set the env var LYXSOCKET in the filesystem encoding as this is what the client expects. * src/support/socktools.[Ch] (socktools::listen): Convert to FileName and use the filesystem encoding for the file names stored in the sockaddr_un struct. * src/client/client.C (socktools::connect): Convert to FileName and use the filesystem encoding for the file names stored in the sockaddr_un struct. (LyXDataSocket::LyXDataSocket, main): Convert to FileName. * src/lyx_main.C (LyX::exec): Use FileName instead of string in socket code. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17749 a592a061-630c-0410-9148-cb99ea01b6c8
30 lines
517 B
C++
30 lines
517 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file socktools.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author João Luis M. Assirati
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef SOCKTOOLS_H
|
|
#define SOCKTOOLS_H
|
|
|
|
namespace lyx {
|
|
namespace support {
|
|
|
|
class FileName;
|
|
|
|
namespace socktools {
|
|
|
|
int listen(FileName const &, int);
|
|
int accept(int);
|
|
|
|
} // namespace socktools
|
|
} // namespace support
|
|
} // namespace lyx
|
|
|
|
#endif // NOT SOCKTOOLS_H
|