]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Common source file changes not directly applicable to open-vm-tools.
authorJohn Wolfe <jwolfe@vmware.com>
Sat, 25 Dec 2021 17:51:13 +0000 (09:51 -0800)
committerJohn Wolfe <jwolfe@vmware.com>
Sat, 25 Dec 2021 17:51:13 +0000 (09:51 -0800)
open-vm-tools/lib/include/poll.h
open-vm-tools/lib/poll/poll.c

index c90f5dcd127b344bbbd9772e02a93f0761c0d110..ade356b9f2da043645c95a6d4200f27d8e3ea1cc 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * 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
@@ -254,6 +254,7 @@ void Poll_InitDefaultEx(const PollOptions *opts);
 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
index 580b5c96f8ccab1c1e240c4c9352295b79bf2e9c..c568632b52fb53d4f0361c94c592454814870cd6 100644 (file)
@@ -114,6 +114,30 @@ Poll_InitWithImpl(const PollImpl *impl)
    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;
+}
+
+
 /*
  *----------------------------------------------------------------------
  *