r24712: No longer expose the 'BOOL' data type in any interfaces.
[samba.git] / source4 / include / core.h
index 6ca276bf0ec8d59bd5389a677a6dea5c0ff4dead..a31b4c59c76b87d4ce2504621336067daff5399d 100644 (file)
@@ -8,7 +8,7 @@
    
    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
+   the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
@@ -17,8 +17,7 @@
    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.
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 #ifndef _SAMBA_CORE_H
 
 #include "libcli/util/nt_status.h"
 
-typedef int BOOL;
-
-#define False (0)
-#define True (1)
+#include <stdlib.h>
 
 /* used to hold an arbitrary blob of data */
 typedef struct datablob {
@@ -95,6 +91,18 @@ enum brl_type {
        PENDING_WRITE_LOCK
 };
 
+enum server_role {
+       ROLE_STANDALONE=0,
+       ROLE_DOMAIN_MEMBER=1,
+       ROLE_DOMAIN_CONTROLLER=2,
+};
+
+enum announce_as {/* Types of machine we can announce as. */
+       ANNOUNCE_AS_NT_SERVER=1,
+       ANNOUNCE_AS_WIN95=2,
+       ANNOUNCE_AS_WFW=3,
+       ANNOUNCE_AS_NT_WORKSTATION=4
+};
 
 
 #endif /* _SAMBA_CORE_H */