FreeNOS
CoreMessage.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 Niek Linnenbank
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef __SERVER_CORE_COREMESSAGE_H
19 #define __SERVER_CORE_COREMESSAGE_H
20 
21 #include <Types.h>
22 #include <ChannelMessage.h>
23 #include "Core.h"
24 
38 typedef struct CoreMessage : public ChannelMessage
39 {
45  const char *programCmd;
46 }
48 
54 #endif /* __SERVER_CORE_COREMESSAGE_H */
CoreMessage::programAddr
Address programAddr
Contains the virtual address of a loaded program.
Definition: CoreMessage.h:43
Types.h
CoreMessage
Message format for communication with the CoreServer.
Definition: CoreMessage.h:38
Core::Action
Action
Actions which may be performed on the CoreServer.
Definition: Core.h:36
Address
unsigned long Address
A memory address.
Definition: Types.h:131
CoreMessage::result
Core::Result result
Result code.
Definition: CoreMessage.h:41
CoreMessage
CoreMessage CoreMessage
Message format for communication with the CoreServer.
CoreMessage::action
Core::Action action
Action to perform.
Definition: CoreMessage.h:40
ChannelMessage.h
CoreMessage::programCmd
const char * programCmd
Command-line string for a loaded program.
Definition: CoreMessage.h:45
CoreMessage::coreNumber
Size coreNumber
Indicates a number of cores or a specific coreId.
Definition: CoreMessage.h:42
Size
unsigned int Size
Any sane size indicator cannot go negative.
Definition: Types.h:128
CoreMessage::programSize
Size programSize
Contains the size of a loaded program.
Definition: CoreMessage.h:44
Core::Result
Result
Result code for Actions.
Definition: Core.h:47
Core.h
ChannelMessage
Basic message format for sending on a Channel.
Definition: ChannelMessage.h:34