/*
* event.c: event loop for monitoring file handles
*
+ * Copyright (C) 2007, 2011 Red Hat, Inc.
* Copyright (C) 2007 Daniel P. Berrange
- * Copyright (C) 2007 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Once registered, the application can invoke
* virEventRunDefaultImpl in a loop to process
* events
+ *
+ * Returns 0 on success, -1 on failure.
*/
int virEventRegisterDefaultImpl(void)
{
* if (virEventRunDefaultImpl() < 0)
* ...print error...
* }
+ *
+ * Returns 0 on success, -1 on failure.
*/
int virEventRunDefaultImpl(void)
{
/*
* virterror.c: implements error handling and reporting code for libvirt
*
- * Copy: Copyright (C) 2006, 2008-2010 Red Hat, Inc.
+ * Copy: Copyright (C) 2006, 2008-2011 Red Hat, Inc.
*
* See COPYING.LIB for the License of this software
*
virerr, NULL, NULL, -1, -1, virerr, NULL);
}
+/**
+ * virSetErrorLogPriorityFunc:
+ * @func: function to install
+ *
+ * Install a function used to filter error logging based on error priority.
+ */
void virSetErrorLogPriorityFunc(virErrorLogPriorityFunc func)
{
virErrorLogPriorityFilter = func;