a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina/*
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina Authors:
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina Pavel Březina <pbrezina@redhat.com>
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina Copyright (C) 2013 Red Hat
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina This program is free software; you can redistribute it and/or modify
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina it under the terms of the GNU General Public License as published by
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina the Free Software Foundation; either version 3 of the License, or
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina (at your option) any later version.
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina This program is distributed in the hope that it will be useful,
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina but WITHOUT ANY WARRANTY; without even the implied warranty of
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina GNU General Public License for more details.
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina You should have received a copy of the GNU General Public License
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina along with this program. If not, see <http://www.gnu.org/licenses/>.
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina*/
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina#include <talloc.h>
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina#include "util/util_sss_idmap.h"
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březinavoid *sss_idmap_talloc(size_t size, void *pvt)
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina{
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina return talloc_size(pvt, size);
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina}
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březinavoid sss_idmap_talloc_free(void *ptr, void *pvt)
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina{
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina talloc_free(ptr);
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel Březina}