ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libptytty/src/ptytty.C
(Generate patch)

Comparing libptytty/src/ptytty.C (file contents):
Revision 1.14 by root, Mon Jan 23 11:21:48 2006 UTC vs.
Revision 1.15 by root, Mon Jan 23 11:22:08 2006 UTC

615} 615}
616 616
617///////////////////////////////////////////////////////////////////////////// 617/////////////////////////////////////////////////////////////////////////////
618// C API 618// C API
619 619
620#ifndef NO_C_API
621
620#define DEFINE_METHOD(retval, name, args1, args2) \ 622#define DEFINE_METHOD(retval, name, args1, args2) \
621extern "C" retval ptytty_ ## name args1 \ 623extern "C" retval ptytty_ ## name args1 \
622{ return ((struct ptytty *)ptytty)->name args2; } 624{ return ((struct ptytty *)ptytty)->name args2; }
623 625
624DEFINE_METHOD(int,pty,(void *ptytty),) 626DEFINE_METHOD(int,pty,(void *ptytty),)
643} 645}
644 646
645DEFINE_STATIC(void,drop_privileges,()) 647DEFINE_STATIC(void,drop_privileges,())
646DEFINE_STATIC(void,use_helper,()) 648DEFINE_STATIC(void,use_helper,())
647 649
650#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines