/*
Authors:
Pavel Březina <pbrezina@redhat.com>
Copyright (C) 2016 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <dlfcn.h>
#include "config.h"
#include "providers/data_provider/dp.h"
#include "providers/data_provider/dp_private.h"
/* There can be at most the same number of different modules loaded at
* one time as the maximum number of defined targets. */
{
return ENOMEM;
}
goto done;
}
done:
return ret;
}
struct data_provider *provider)
{
char *fn_name;
return ENOMEM;
}
goto done;
}
} else {
goto done;
}
done:
return ret;
}
const char *name,
unsigned int *_slot)
{
unsigned int slot;
return EOK;
}
}
if (slot == DP_MAX_MODULES) {
/* This should not happen. */
return ERR_INTERNAL;
}
return EOK;
}
struct data_provider *provider,
const char *name)
{
goto done;
}
goto done;
}
goto done;
}
goto done;
}
module->initialized = true;
done:
return NULL;
}
return module;
}
struct data_provider *provider,
const char *name)
{
unsigned int free_slot;
return NULL;
}
return module;
}
return NULL;
}
return module;
}
{
DP_MAX_MODULES + 1);
return ENOMEM;
}
return EOK;
}