ifp_iface.c revision 9e9ad4cb181c6c0ec70caacfb31319753f889e98
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen Pavel Březina <pbrezina@redhat.com>
16f816d3f3c32ae3351834253f52ddd0212bcbf3Timo Sirainen Copyright (C) 2015 Red Hat
a2f250a332dfc1e6cd4ffd196c621eb9dbf7b8a1Timo Sirainen This program is free software; you can redistribute it and/or modify
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen it under the terms of the GNU General Public License as published by
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen the Free Software Foundation; either version 3 of the License, or
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen (at your option) any later version.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen This program is distributed in the hope that it will be useful,
d41573018e85896ec836d897fd554e87126147f5Timo Sirainen but WITHOUT ANY WARRANTY; without even the implied warranty of
d41573018e85896ec836d897fd554e87126147f5Timo Sirainen MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d41573018e85896ec836d897fd554e87126147f5Timo Sirainen GNU General Public License for more details.
945631faab2bf1aed8d95a1fd0c317a9ce153725Timo Sirainen You should have received a copy of the GNU General Public License
945631faab2bf1aed8d95a1fd0c317a9ce153725Timo Sirainen along with this program. If not, see <http://www.gnu.org/licenses/>.
f81a4d2002da0db33d11ca694d3a91b3ee2a0fdbTimo Sirainen /* components */
f81a4d2002da0db33d11ca694d3a91b3ee2a0fdbTimo Sirainen .FindResponderByName = ifp_find_responder_by_name,
f81a4d2002da0db33d11ca694d3a91b3ee2a0fdbTimo Sirainen .FindBackendByName = ifp_find_backend_by_name,
7bd3f5614e0dd2324dd1015f084de72c0b069a1aTimo Sirainenstruct iface_ifp_components iface_ifp_components = {
2c677e9d339bc91d5b54376ba2986f71476c06abTimo Sirainen .ChangeDebugLevel = ifp_component_change_debug_level,
51795bfe9d05d92fe942cb451aec2b9d16d32a11Timo Sirainen .ChangeDebugLevelTemporarily = ifp_component_change_debug_level_tmp,
945631faab2bf1aed8d95a1fd0c317a9ce153725Timo Sirainen .get_debug_level = ifp_component_get_debug_level,
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen /* FIXME: This should be part of Components.Backends interface, onece
e6d7d19c328e7043ad35d5a52c1617bde915a16fTimo Sirainen * SSSD supports multiple interfaces per object path. */
8d131435ba4648c8821160ec38d508c97177c715Timo Sirainen .get_primary_servers = ifp_dom_get_primary_servers,
9315dd69233d554452df0c12bc57002d2042a8f4Timo Sirainen .get_backup_servers = ifp_dom_get_backup_servers,
a28a6267f48971117dec958b160deefd14ebb7a6Timo Sirainen .get_fully_qualified_name_format = ifp_dom_get_fqdn_format,
2a6af811ea3de3cf9e2f15e446674dd21b0705f3Timo Sirainen .get_use_fully_qualified_names = ifp_dom_get_use_fqdn,
bf91bed88d4e294b4577ba2a3b14d87cf35ae135Timo Sirainen .get_parent_domain = ifp_dom_get_parent_domain
2a6af811ea3de3cf9e2f15e446674dd21b0705f3Timo Sirainenstruct iface_ifp_domains_domain iface_ifp_domains_domain = {
bf91bed88d4e294b4577ba2a3b14d87cf35ae135Timo Sirainen .ListServices = ifp_domains_domain_list_services
a28a6267f48971117dec958b160deefd14ebb7a6Timo Sirainen .ListByDomainAndName = ifp_users_list_by_domain_and_name
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainenstruct iface_ifp_users_user iface_ifp_users_user = {
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo Sirainen .UpdateGroupsList = ifp_users_user_update_groups_list,
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo Sirainen .get_uidNumber = ifp_users_user_get_uid_number,
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo Sirainen .get_gidNumber = ifp_users_user_get_gid_number,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen .get_homeDirectory = ifp_users_user_get_home_directory,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen .get_loginShell = ifp_users_user_get_login_shell,
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo Sirainen .get_extraAttributes = ifp_users_user_get_extra_attributes
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo Sirainen .ListByDomainAndName = ifp_groups_list_by_domain_and_name
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo Sirainenstruct iface_ifp_groups_group iface_ifp_groups_group = {
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo Sirainen .UpdateMemberList = ifp_groups_group_update_member_list,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen .get_gidNumber = ifp_groups_group_get_gid_number,
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo Sirainenstruct iface_ifp_cache iface_ifp_cache_user = {
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo Sirainenstruct iface_ifp_cache_object iface_ifp_cache_object_user = {
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo Sirainenstruct iface_ifp_cache iface_ifp_cache_group = {
1cad0dd34667548ba39f794ddeb9fc486cf4c666Timo Sirainen .ListByDomain = ifp_cache_list_by_domain_group
3697080532ccd9f51fac108be6079b616c7a2ddfTimo Sirainenstruct iface_ifp_cache_object iface_ifp_cache_object_group = {
3697080532ccd9f51fac108be6079b616c7a2ddfTimo Sirainen { IFP_PATH_DOMAINS, &iface_ifp_domains.vtable },
3697080532ccd9f51fac108be6079b616c7a2ddfTimo Sirainen { IFP_PATH_DOMAINS_TREE, &iface_ifp_domains.vtable },
3697080532ccd9f51fac108be6079b616c7a2ddfTimo Sirainen { IFP_PATH_DOMAINS_TREE, &iface_ifp_domains_domain.vtable },
a28a6267f48971117dec958b160deefd14ebb7a6Timo Sirainen { IFP_PATH_COMPONENTS_TREE, &iface_ifp_components.vtable },
a28a6267f48971117dec958b160deefd14ebb7a6Timo Sirainen { IFP_PATH_USERS, &iface_ifp_cache_user.vtable },
3697080532ccd9f51fac108be6079b616c7a2ddfTimo Sirainen { IFP_PATH_USERS_TREE, &iface_ifp_users_user.vtable },
3697080532ccd9f51fac108be6079b616c7a2ddfTimo Sirainen { IFP_PATH_USERS_TREE, &iface_ifp_cache_object_user.vtable },
3697080532ccd9f51fac108be6079b616c7a2ddfTimo Sirainen { IFP_PATH_GROUPS, &iface_ifp_groups.vtable },
3697080532ccd9f51fac108be6079b616c7a2ddfTimo Sirainen { IFP_PATH_GROUPS, &iface_ifp_cache_group.vtable },
3697080532ccd9f51fac108be6079b616c7a2ddfTimo Sirainen { IFP_PATH_GROUPS_TREE, &iface_ifp_groups_group.vtable },
3697080532ccd9f51fac108be6079b616c7a2ddfTimo Sirainen { IFP_PATH_GROUPS_TREE, &iface_ifp_cache_object_group.vtable },
a28a6267f48971117dec958b160deefd14ebb7a6Timo Sirainenerrno_t ifp_register_sbus_interface(struct sbus_connection *conn, void *pvt)