Xyris  0.5
Boot Namespace Reference

Data Structures

struct  argument
 
class  Handoff
 
class  HandoffCPUDescriptor
 
class  HandoffRSDPDescriptor
 
class  HandoffSMPDescriptor
 

Typedefs

typedef void(* cmdline_cb_t) (const char *arg)
 

Enumerations

enum  HandoffBootloaderType { Stivale2 = 0 }
 

Functions

void parseCommandLine (char *cmdline)
 

Typedef Documentation

◆ cmdline_cb_t

typedef void(* Boot::cmdline_cb_t) (const char *arg)

Definition at line 21 of file Arguments.hpp.

Enumeration Type Documentation

◆ HandoffBootloaderType

Enumerator
Stivale2 

Definition at line 18 of file Handoff.hpp.

18  {
19  Stivale2 = 0,
20 };

Function Documentation

◆ parseCommandLine()

void Boot::parseCommandLine ( char *  cmdline)

Parse a command line for registered arguments.

Parameters
cmdlineCommand line string to be parsed

Definition at line 17 of file Arguments.cpp.

18 {
19  for (struct argument* arg = _ARGUMENTS_START; arg < _ARGUMENTS_END; arg++) {
20  if (strstr(cmdline, arg->arg)) {
21  arg->callback(arg->arg);
22  }
23  }
24 }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:
_ARGUMENTS_START
struct Boot::argument _ARGUMENTS_START[0]
strstr
const char * strstr(const char *haystack, const char *needle)
Locates a substring (needle) within a containing string (haystack)
Definition: string.cpp:65
_ARGUMENTS_END
struct Boot::argument _ARGUMENTS_END[0]
Boot::Stivale2
@ Stivale2
Definition: Handoff.hpp:19