Update of /cvsroot/ssic-linux/openssi/kernel/include/cluster/ssi/util
In directory sc8-pr-cvs1:/tmp/cvs-serv15474/util
Added Files:
scm.h
Log Message:
Add new header files to support remote fd passing via Unix domain sockets.
--- NEW FILE: scm.h ---
/*
* Internal SSI socket control message header file.
* Copyright (c) 2003 Hewlett-Packard Company
*
* 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 2 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, GOOD TITLE
* or NON INFRINGEMENT. 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, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* Questions/Comments/Bugfixes to ssic-linux-devel@xxxxxxxxxxxxxxxxxxxxx
*
*/
#ifndef _SSI_UTIL_SCM_H
#define _SSI_UTIL_SCM_H
#include <cluster/icsgen.h>
#include <cluster/nsc.h>
#include <cluster/rpc/xdr.h>
struct rmtscm_cookie;
struct scm_fp_list;
struct rmtscm_fp_list;
int rmtscm_fp_isremote(struct scm_fp_list *fpl);
void rmtscm_rfp_destroy(struct rmtscm_fp_list *rfpl);
int rmtscm_rfp_create(struct rmtscm_fp_list **rfplp, struct scm_fp_list *fpl);
int rmtscm_rfp_unload(struct scm_fp_list *fpl, struct rmtscm_fp_list *rfpl);
bool_t xdr_rmtscm_cookie (XDR *xdrs, struct rmtscm_cookie *objp);
/*
* param IN:XDR struct rmtscm_cookie *
*/
#define cli_encode_xdr_struct_rmtscm_cookie_p(hndl,x) \
icscli_encode_xdr(hndl,(u_char*)&x,xdr_rmtscm_cookiep_t);
#define svr_decode_xdr_struct_rmtscm_cookie_p(hndl,x) \
icssvr_decode_xdr(hndl,(u_char*)&x,xdr_rmtscm_cookiep_t);
#define svr_free_xdr_struct_rmtscm_cookie_p(hndl,x) \
icssvr_free_xdr(hndl,(u_char*)&x,xdr_rmtscm_cookiep_t);
#endif /* _SSI_UTIL_SCM_H */
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
|