mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-22 10:29:31 +00:00
23 lines
407 B
C
23 lines
407 B
C
/*
|
|
*
|
|
* (c) 2004-2007 Laurent Vivier <Laurent@lvivier.info>
|
|
*
|
|
*/
|
|
|
|
#include "libmap.h"
|
|
|
|
int map_partition_set_startup(map_t *map, int enable)
|
|
{
|
|
if (!map_partition_is_valid(map))
|
|
return -1;
|
|
|
|
if (enable)
|
|
map_partition_set_flags(map,
|
|
map_partition_get_flags(map) | kPartitionIsStartup);
|
|
else
|
|
map_partition_set_flags(map,
|
|
map_partition_get_flags(map) & ~kPartitionIsStartup);
|
|
|
|
return 0;
|
|
}
|