OSDN Git Service

added warning at registrating other's device
[opengatem/opengatem.git] / mngsrc / opengatemmng.h
index 87b8d53..1cbbfe5 100644 (file)
@@ -113,7 +113,7 @@ enum errs{ExistentMacAddr,DeviceCountOver,IllegalMacAddrForm,
          IllegalCharInDevice,EmptyDeviceName,IllegalCharInMailAddr,SuspectNat,
          NoInfoInDb,IllegalUserId,IllegalMacAddr,NoService,
          NoDaemon,ModifyCountOver,RegisterSuccess,UpdateSuccess,IllegalCookie,
-         NotSetAdminCookie,RequestAdminAuth,UnallowableAgent,
+         NotSetAdminCookie,RequestAdminAuth,UnallowableAgent,MacBelongToOther,
          ENDOFLIST};
 
 /**********prototypes***************************************/
@@ -197,6 +197,7 @@ int RenameDeviceNameInMngDb(char* macAddr, char* nameStr);
 int RenameMailAddressInMngDb(char* macAddr, char* mailStr);
 int RegOrUpNobodyMacAddr(char* macAddress);
 int IsMacAddrStatusInactiveInMngDb(char* macAddress);
+int DoesMacAddrBelongToUser(char* macAddr, char* userId, char* extraId);
 
 /* workdb.c */
 int SetupSqliteBusyTimeoutValue(void);