1998-03-11 21:11:04 +00:00
/*
2002-01-30 06:08:46 +00:00
Unix SMB / CIFS implementation .
2005-03-23 23:26:33 +00:00
2005-04-06 03:08:25 +00:00
Copyright ( C ) Andrew Tridgell 1992 - 1997
Copyright ( C ) Luke Kenneth Casson Leighton 1996 - 1997
Copyright ( C ) Paul Ashton 1997
Copyright ( C ) Gerald ( Jerry ) Carter 2005
1998-03-11 21:11:04 +00:00
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
2007-07-09 19:25:36 +00:00
the Free Software Foundation ; either version 3 of the License , or
1998-03-11 21:11:04 +00:00
( 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
2007-07-10 00:52:41 +00:00
along with this program . If not , see < http : //www.gnu.org/licenses/>.
1998-03-11 21:11:04 +00:00
*/
# ifndef _RPC_MISC_H /* _RPC_MISC_H */
# define _RPC_MISC_H
2005-04-06 03:08:25 +00:00
/**********************************************************************
* RPC policy handle used pretty much everywhere
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
1998-03-11 21:11:04 +00:00
2006-09-11 22:02:34 +00:00
# define OUR_HANDLE(hnd) (((hnd)==NULL) ? "NULL" :\
2015-05-13 17:26:01 -07:00
( IVAL ( ( hnd ) - > uuid . node , 2 ) = = ( uint32_t ) getpid ( ) ? " OURS " : \
2006-09-11 22:02:34 +00:00
" OTHER " ) ) , ( ( unsigned int ) IVAL ( ( hnd ) - > uuid . node , 2 ) ) , \
2012-03-24 20:17:08 +01:00
( ( unsigned int ) getpid ( ) )
2005-04-06 03:08:25 +00:00
1998-03-11 21:11:04 +00:00
# endif /* _RPC_MISC_H */