/*
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 <talloc.h>
#include <tevent.h>
#include "sbus/sssd_dbus_errors.h"
#include "providers/data_provider/dp_private.h"
#include "util/dlinklist.h"
#include "util/sss_utf8.h"
struct sbus_request *sbus_req,
void **data)
{
}
const char *req_name,
{
switch (ret) {
case EOK:
"Bug: Success case must be handled by custom handler.");
"Operation succeeded but result was not handled");
break;
case ERR_OFFLINE:
"Finished. Backend is currently offline.");
"Backend is currently offline");
break;
case ERR_MISSING_DP_TARGET:
"Finished. Target is not supported "
"with this configuration.");
"Target is not supported.");
break;
default:
break;
}
return error;
}
const char *req_name,
{
"Out of memory, killing request...");
return;
}
}
const char *req_name,
{
"Out of memory, killing request...");
}
return;
}
}
return;
}
const char *request_name,
void *output_data)
{
}
}
struct dp_req_with_reply_state {
void *postprocess_data;
const char *output_dtype;
const char *key;
const char *name;
};
const char *domain,
const char *request_name,
const char *custom_key,
struct sbus_request *sbus_req,
enum dp_targets target,
enum dp_methods method,
void *request_data,
void *postprocess_data,
const char *output_dtype);
const char *domain,
const char *request_name,
const char *custom_key,
struct sbus_request *sbus_req,
enum dp_targets target,
enum dp_methods method,
void *request_data,
void *postprocess_data,
const char *output_dtype)
{
const char *key;
bool has_key;
goto done;
}
if (custom_key == NULL) {
/* It may not be always possible or desirable to have a meaningful key
* to chain sbus request. In such cases, we generate a unique key from
* sbus_req address that allows us to use the same code but the
* chaining is logically disabled. */
if (custom_key == NULL) {
goto done;
}
}
goto done;
}
if (has_key) {
"existing data provider request [%d]: %s\n",
goto done;
}
goto done;
}
done:
"new DP request, killing D-Bus request...\n");
"DP request [%d: %s], killing D-Bus request...\n",
}
}
const char *domain,
const char *request_name,
const char *custom_key,
struct sbus_request *sbus_req,
enum dp_targets target,
enum dp_methods method,
void *request_data,
void *postprocess_data,
const char *output_dtype)
{
return ENOMEM;
}
goto done;
}
goto done;
}
if (postprocess_fn != NULL) {
}
goto done;
}
goto done;
}
goto done;
}
done:
return ret;
}
{
void *output_data;
return;
}
goto done;
}
/* Run postprocess function if any. */
}
/* Reply with data. */
done:
/* Freeing value will remove it from the table as well. */
}