title: Change GRUB's variable using a C language
body: <p>I was wondering if there is any way for me to write a C program to change the value off GRUB's variables.</p>
  
  <p>I need to write a program that can reboot my computer on another OS, for example :</p>
  
  <ul>
  <li>I am on Suse disk1 </li>
  </ul>
  
  <p>program changes GRUB's variable and reboot automatically.</p>
  
  <ul>
  <li>I am on Suse disk2</li>
  </ul>
  
  <p>I would like to access variables like : title, root, kernel, initrd. But without editing the /boot/grub/menu.lst or grub.conf  file.</p>
  
  <p>Is there an API for GRUB?</p>