/*********************************************************
- * Copyright (C) 1998-2020 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998-2021 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
void Poll_InitGtk(void); // On top of glib for Linux
void Poll_InitCF(void); // On top of CoreFoundation for OSX
+Bool Poll_IsInitialized(void);
/*
* Functions
pollImpl->Init();
}
+
+/*
+ *----------------------------------------------------------------------
+ *
+ * Poll_IsInitialized --
+ *
+ * Allows libraries to determine if they can use poll or not.
+ *
+ * Results:
+ * TRUE if and only if poll is initialized.
+ *
+ * Side effects:
+ * None.
+ *
+ *----------------------------------------------------------------------
+ */
+
+Bool
+Poll_IsInitialized(void)
+{
+ return pollImpl != NULL;
+}
+
+
/*
*----------------------------------------------------------------------
*