1 #ifndef CLIB_MULTIUSER_PROTOS_H 2 #define CLIB_MULTIUSER_PROTOS_H 3 4 /* 5 multiuser.library C prototypes 6 7 Copyright © 2002-2003 The MorphOS Development Team, All Rights Reserved. 8 */ 9 10 #ifndef LIBRARIES_MULTIUSER_H 11 # include <libraries/multiuser.h> 12 #endif 13 14 #ifdef __cplusplus 15 extern "C" { 16 #endif /* __cplusplus */ 17 18 ULONG muLogoutA(struct TagItem *taglist); 19 #if !defined(USE_INLINE_STDARG) 20 ULONG muLogout(ULONG tag1type,...); 21 #endif 22 ULONG muLoginA(struct TagItem *taglist); 23 #if !defined(USE_INLINE_STDARG) 24 ULONG muLogin(ULONG tag1type,...); 25 #endif 26 ULONG muGetTaskOwner(struct Task *task); 27 BOOL muPasswd(STRPTR oldpwd, STRPTR newpwd); 28 struct muUserInfo *muAllocUserInfo(void); 29 void muFreeUserInfo(struct muUserInfo *info); 30 struct muUserInfo *muGetUserInfo(struct muUserInfo *info, ULONG keytype); 31 BOOL muSetDefProtectionA(struct TagItem *taglist); 32 #if !defined(USE_INLINE_STDARG) 33 BOOL muSetDefProtection(ULONG tag1type,...); 34 #endif 35 ULONG muGetDefProtection(struct Task *task); 36 BOOL muSetProtection(STRPTR name, LONG mask); 37 BOOL muLimitDOSSetProtection(BOOL flag); 38 BOOL muCheckPasswd(struct TagItem *taglist); 39 BOOL muCheckPasswdTagList(struct TagItem *taglist); 40 #if !defined(USE_INLINE_STDARG) 41 BOOL muCheckPasswdTags(ULONG tag1type,...); 42 #endif 43 BPTR muGetPasswdDirLock(void); 44 BPTR muGetConfigDirLock(void); 45 struct muExtOwner *muGetTaskExtOwner(struct Task *task); 46 void muFreeExtOwner(struct muExtOwner *owner); 47 ULONG muGetRelationshipA(struct muExtOwner *user, ULONG owner, 48 struct TagItem *taglist); 49 #if !defined(USE_INLINE_STDARG) 50 ULONG muGetRelationship(struct muExtOwner *user, ULONG owner, 51 ULONG tag1type,...); 52 #endif 53 struct muExtOwner *muUserInfo2ExtOwner(struct muUserInfo *info); 54 struct muGroupInfo *muAllocGroupInfo(void); 55 void muFreeGroupInfo(struct muGroupInfo *info); 56 struct muGroupInfo *muGetGroupInfo(struct muGroupInfo *info, ULONG keytype); 57 BOOL muAddMonitor(struct muMonitor *monitor); 58 void muRemMonitor(struct muMonitor *monitor); 59 BOOL muKill(struct Task *task); 60 BOOL muFreeze(struct Task *task); 61 BOOL muUnfreeze(struct Task *task); 62 BOOL muFSRendezVous(void); 63 64 #ifdef __cplusplus 65 } 66 #endif /* __cplusplus */ 67 68 69 #endif /* CLIB_MULTIUSER_PROTOS_H */