r12574: Bring tables.pl back to life and move registration of interfaces
[samba.git] / source4 / librpc / rpc / dcerpc.c
index e9c479a9cd9ced18342e8acfedec05dcbc33e204..37f7d82ef5c5da30381ef10d8cd6504480a7bae7 100644 (file)
 
 static void dcerpc_ship_next_request(struct dcerpc_connection *c);
 
-struct dcerpc_interface_list *dcerpc_pipes = NULL;
-
-/*
-  register a dcerpc client interface
-*/
-NTSTATUS librpc_register_interface(const struct dcerpc_interface_table *interface)
-{
-       struct dcerpc_interface_list *l;
-
-       for (l = dcerpc_pipes; l; l = l->next) {
-               if (GUID_equal(&interface->uuid, &l->table->uuid)) {
-                       DEBUG(0, ("Attempt to register interface %s which has the "
-                                         "same UUID as already registered interface %s\n", 
-                                         interface->name, l->table->name));
-                       return NT_STATUS_OBJECT_NAME_COLLISION;
-               }
-       }
-               
-       l = talloc(talloc_autofree_context(), struct dcerpc_interface_list);
-       l->table = interface;
-
-       DLIST_ADD(dcerpc_pipes, l);
-       
-       return NT_STATUS_OK;
-}
-
 /* destroy a dcerpc connection */
 static int dcerpc_connection_destructor(void *ptr)
 {