2014-01-21 17:25:32 +04:00
/*
Unix SMB / CIFS implementation .
Copyright ( C ) 2014 Björn Baumbach
Copyright ( C ) 2014 Stefan Metzmacher
This program is free software ; you can redistribute it and / or modify
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 "includes.h"
# include "messages.h"
2017-06-11 11:45:25 +03:00
# include "lib/messages_ctdb.h"
2017-06-12 17:50:16 +03:00
# include "lib/messages_ctdb_ref.h"
2014-01-21 17:25:32 +04:00
# include "ctdbd_conn.h"
# include "lib/dbwrap/dbwrap.h"
# include "lib/dbwrap/dbwrap_ctdb.h"
# include "torture/proto.h"
2015-10-03 06:42:05 +03:00
int ctdbd_probe ( const char * sockname , int timeout )
2014-01-21 17:25:32 +04:00
{
2015-10-03 06:42:05 +03:00
return ENOSYS ;
2014-01-21 17:25:32 +04:00
}
2015-10-03 06:42:05 +03:00
int ctdbd_messaging_send_iov ( struct ctdbd_connection * conn ,
uint32_t dst_vnn , uint64_t dst_srvid ,
const struct iovec * iov , int iovlen )
2014-01-21 17:25:32 +04:00
{
2015-10-03 06:42:05 +03:00
return ENOSYS ;
2014-01-21 17:25:32 +04:00
}
2015-10-03 06:42:05 +03:00
int register_with_ctdbd ( struct ctdbd_connection * conn , uint64_t srvid ,
2017-06-01 18:45:47 +03:00
int ( * cb ) ( struct tevent_context * ev ,
uint32_t src_vnn , uint32_t dst_vnn ,
2015-10-03 06:42:05 +03:00
uint64_t dst_srvid ,
const uint8_t * msg , size_t msglen ,
void * private_data ) ,
void * private_data )
2014-01-21 17:25:32 +04:00
{
2015-10-03 06:42:05 +03:00
return ENOSYS ;
2014-01-21 17:25:32 +04:00
}
2015-10-03 06:42:05 +03:00
int ctdbd_register_ips ( struct ctdbd_connection * conn ,
const struct sockaddr_storage * _server ,
const struct sockaddr_storage * _client ,
2017-06-01 18:45:47 +03:00
int ( * cb ) ( struct tevent_context * ev ,
uint32_t src_vnn , uint32_t dst_vnn ,
2015-10-03 06:42:05 +03:00
uint64_t dst_srvid ,
const uint8_t * msg , size_t msglen ,
void * private_data ) ,
void * private_data )
2014-01-21 17:25:32 +04:00
{
2015-10-03 06:42:05 +03:00
return ENOSYS ;
2014-01-21 17:25:32 +04:00
}
2015-09-30 02:11:08 +03:00
bool ctdbd_process_exists ( struct ctdbd_connection * conn , uint32_t vnn , pid_t pid )
{
return false ;
}
2014-01-21 17:25:32 +04:00
struct db_context * db_open_ctdb ( TALLOC_CTX * mem_ctx ,
2016-04-24 18:37:07 +03:00
struct messaging_context * msg_ctx ,
2014-01-21 17:25:32 +04:00
const char * name ,
int hash_size , int tdb_flags ,
int open_flags , mode_t mode ,
enum dbwrap_lock_order lock_order ,
uint64_t dbwrap_flags )
{
errno = ENOSYS ;
return NULL ;
}
2017-06-11 11:45:25 +03:00
int messaging_ctdb_send ( uint32_t dst_vnn , uint64_t dst_srvid ,
const struct iovec * iov , int iovlen )
{
return ENOSYS ;
}
2017-06-12 17:50:16 +03:00
void * messaging_ctdb_ref ( TALLOC_CTX * mem_ctx , struct tevent_context * ev ,
const char * sockname , int timeout , uint64_t unique_id ,
void ( * recv_cb ) ( struct tevent_context * ev ,
const uint8_t * msg , size_t msg_len ,
int * fds , size_t num_fds ,
void * private_data ) ,
void * private_data ,
int * err )
{
return NULL ;
}
2017-06-11 11:45:25 +03:00
struct messaging_ctdb_fde * messaging_ctdb_register_tevent_context (
TALLOC_CTX * mem_ctx , struct tevent_context * ev )
{
return NULL ;
}
2017-06-16 14:00:59 +03:00
struct ctdbd_connection * messaging_ctdb_connection ( void )
2014-01-21 17:25:32 +04:00
{
return NULL ;
}
2016-12-21 10:38:25 +03:00
int ctdb_async_ctx_reinit ( TALLOC_CTX * mem_ctx , struct tevent_context * ev )
{
return ENOSYS ;
}