tdf#154546 skip dispatch when presenter controller is not set
[LibreOffice.git] / sal / osl / unx / sockimpl.hxx
blob1a9bc1f9ede26410d37e690e6638ad25ca7ff036
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SAL_OSL_UNX_SOCKIMPL_HXX
21 #define INCLUDED_SAL_OSL_UNX_SOCKIMPL_HXX
23 #include <osl/pipe.h>
24 #include <osl/socket.h>
25 #include <osl/interlck.h>
27 #include "system.hxx"
29 #if defined(LINUX) || defined(FREEBSD) || defined(NETBSD)
30 #define CLOSESOCKET_DOESNT_WAKE_UP_ACCEPT 1
31 #endif
33 struct oslSocketImpl {
34 int m_Socket;
35 int m_nLastError;
36 oslInterlockedCount m_nRefCount;
37 #if defined(CLOSESOCKET_DOESNT_WAKE_UP_ACCEPT)
38 bool m_bIsAccepting;
39 bool m_bIsInShutdown;
40 #endif
43 struct oslSocketAddrImpl
45 struct sockaddr m_sockaddr;
48 struct oslPipeImpl {
49 int m_Socket;
50 char m_Name[sizeof sockaddr_un::sun_path];
51 oslInterlockedCount m_nRefCount;
52 bool m_bClosed;
53 #if defined(CLOSESOCKET_DOESNT_WAKE_UP_ACCEPT)
54 bool m_bIsAccepting;
55 bool m_bIsInShutdown;
56 #endif
59 #endif
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */