diff options
| author | Jakub Hrozek <jhrozek@redhat.com> | 2015-11-11 13:40:16 +0100 |
|---|---|---|
| committer | Lukas Slebodnik <lslebodn@redhat.com> | 2015-12-10 12:28:49 +0100 |
| commit | 0741237b3f9209af43d956216b3c2f09b90c4ebc (patch) | |
| tree | e16ce071bfb89bfb7034db8ac39f4aa000f12ed3 /src/python/pysss_nss_idmap.c | |
| parent | 4afc1f2b6ca066d30d2be5ccda9fa760b5a6016e (diff) | |
| download | sssd-0741237b3f9209af43d956216b3c2f09b90c4ebc.tar.gz sssd-0741237b3f9209af43d956216b3c2f09b90c4ebc.tar.xz sssd-0741237b3f9209af43d956216b3c2f09b90c4ebc.zip | |
DP: Reduce code duplication in Data Provider handlers
Instead of setting the three same variables over again, add a structure
be_sbus_reply_data with a default initializer BE_SBUS_REPLY_DATA_INIT.
The handlers can then set the structure to BE_SBUS_REPLY_DATA_INIT on
declaration or set a particular value with be_sbus_reply_data_set.
The handler can also reply to the message (typically on failure state)
with be_sbus_req_reply_data()
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/python/pysss_nss_idmap.c')
0 files changed, 0 insertions, 0 deletions
