Changeset 4303


Ignore:
Timestamp:
04/03/08 12:28:43 (5 years ago)
Author:
thomas
Message:

2008-04-03 Thomas Wood <thomas@…>

  • src/test-notes.c: (main): Add optional message and author command line parameters
Location:
trunk/src/target/OM-2007.2/applications/openmoko-messages2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/OM-2007.2/applications/openmoko-messages2/ChangeLog

    r4300 r4303  
     12008-04-03  Thomas Wood  <thomas@openedhand.com> 
     2 
     3        * src/test-notes.c: (main): Add optional message and author command line 
     4        parameters 
     5 
    162008-04-02  Thomas Wood  <thomas@openedhand.com> 
    27 
  • trunk/src/target/OM-2007.2/applications/openmoko-messages2/src/test-notes.c

    r4299 r4303  
    2626  JanaNote *note; 
    2727  JanaStore *store; 
     28  gchar *number = "0123456789"; 
     29  gchar *body = "Test Message"; 
    2830   
    2931  g_type_init (); 
     32 
     33  if (argc >= 2) 
     34    number = argv[1]; 
     35 
     36  if (argc >= 3) 
     37    body = argv[2]; 
    3038   
    3139  store = jana_ecal_store_new (JANA_COMPONENT_NOTE); 
     
    3341   
    3442  note = jana_ecal_note_new (); 
    35   jana_note_set_author (note, "0123456789"); 
    36   jana_note_set_body (note, "Test Message"); 
     43  jana_note_set_author (note, number); 
     44  jana_note_set_body (note, body); 
    3745   
    3846  jana_store_add_component (store, JANA_COMPONENT (note)); 
Note: See TracChangeset for help on using the changeset viewer.