diff options
| author | George Hazan <george.hazan@gmail.com> | 2025-04-02 14:04:32 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2025-04-02 14:04:32 +0300 |
| commit | 2767c88fe4dd51e87e74b8d44cda2a7ea54c63b7 (patch) | |
| tree | bd202d4b48b9c453727905d446b996cf832a696d /include | |
| parent | 86cb2d6947b6c352313628500d40055145c4b128 (diff) | |
stronger types - better types
Diffstat (limited to 'include')
| -rw-r--r-- | include/m_core.h | 10 | ||||
| -rw-r--r-- | include/m_netlib.h | 2 |
2 files changed, 5 insertions, 7 deletions
diff --git a/include/m_core.h b/include/m_core.h index 947c37ed83..a9f7f4d252 100644 --- a/include/m_core.h +++ b/include/m_core.h @@ -48,16 +48,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifdef MIR_APP_EXPORTS
#define MIR_APP_EXPORT MIR_EXPORT
- typedef struct NetlibUser* HNETLIBUSER;
- typedef struct NetlibConnection* HNETLIBCONN;
- typedef struct NetlibBoundPort* HNETLIBBIND;
#else
#define MIR_APP_EXPORT MIR_IMPORT
- DECLARE_HANDLE(HNETLIBUSER);
- DECLARE_HANDLE(HNETLIBCONN);
- DECLARE_HANDLE(HNETLIBBIND);
#endif
+typedef struct NetlibUser* HNETLIBUSER;
+typedef struct NetlibBoundPort* HNETLIBBIND;
+typedef struct NetlibConnection* HNETLIBCONN;
+
typedef struct TMO_IntMenuItem* HGENMENU;
class CMPluginBase;
diff --git a/include/m_netlib.h b/include/m_netlib.h index f02d1e890f..3ff4f971d8 100644 --- a/include/m_netlib.h +++ b/include/m_netlib.h @@ -785,7 +785,7 @@ public: MWebSocket();
~MWebSocket();
- __forceinline HANDLE getConn() const { return m_hConn; }
+ __forceinline HNETLIBCONN getConn() const { return m_hConn; }
// packet processor
virtual void process(const uint8_t *buf, size_t cbLen) = 0;
|
