]> git.tdb.fi Git - libs/core.git/blobdiff - source/pollable.cpp
Rename to libmspcore
[libs/core.git] / source / pollable.cpp
diff --git a/source/pollable.cpp b/source/pollable.cpp
deleted file mode 100644 (file)
index 4db38dd..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
-This file is part of libmspframework
-Copyright © 2006 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-#ifdef WIN32
-#include <winsock2.h>
-#include "win32poll.h"
-#else
-#include <poll.h>
-#endif
-#include "pollable.h"
-
-namespace Msp {
-
-short Pollable::poll(short events, int timeout)
-{
-#ifdef WIN32
-       return 0;
-#else
-       pollfd pfd={get_fd(), events, 0};
-       int result=::poll(&pfd, 1, timeout);
-       if(result<=0)
-               return result;
-       return pfd.revents;
-#endif
-}
-
-}