Changeset 576

Show
Ignore:
Timestamp:
08/29/08 18:44:03 (3 months ago)
Author:
Mike Wey
Message:

add a few nocode's that were missing in svn r575

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/glib/BookmarkFile.d

    r575 r576  
    4141 * omit prefixes: 
    4242 * omit code: 
     43 *  - g_bookmark_file_set_groups 
    4344 * omit signals: 
    4445 * imports: 
     
    822823     
    823824    /** 
    824      * Sets a list of group names for the item with URI uri. Each previously 
    825      * set group name list is removed. 
    826      * If uri cannot be found then an item for it is created. 
    827      * Since 2.12 
    828      * Params: 
    829      * uri =  an item's URI 
    830      * groups =  an array of group names, or NULL to remove all groups 
    831      * length =  number of group name values in groups 
    832      */ 
    833     public void setGroups(string uri, char** groups, uint length) 
    834     { 
    835         // void g_bookmark_file_set_groups (GBookmarkFile *bookmark,  const gchar *uri,  const gchar **groups,  gsize length); 
    836         g_bookmark_file_set_groups(gBookmarkFile, Str.toStringz(uri), groups, length); 
    837     } 
    838      
    839     /** 
    840825     * Sets the last time the bookmark for uri was last modified. 
    841826     * If no bookmark for uri is found then it is created. 
  • trunk/src/glib/IOChannel.d

    r575 r576  
    4141 * omit prefixes: 
    4242 * omit code: 
     43 *  - g_io_channel_read_line 
     44 *  - g_io_channel_read_to_end 
    4345 * omit signals: 
    4446 * imports: 
     
    425427     
    426428    /** 
    427      * Reads a line, including the terminating character(s), 
    428      * from a GIOChannel into a newly-allocated string. 
    429      * str_return will contain allocated memory if the return 
    430      * is G_IO_STATUS_NORMAL. 
    431      * Params: 
    432      * strReturn =  The line read from the GIOChannel, including the 
    433      *  line terminator. This data should be freed with g_free() 
    434      *  when no longer needed. This is a nul-terminated string. 
    435      *  If a length of zero is returned, this will be NULL instead. 
    436      * length =  location to store length of the read data, or NULL 
    437      * terminatorPos =  location to store position of line terminator, or NULL 
    438      * Returns: the status of the operation. 
    439      * Throws: GException on failure. 
    440      */ 
    441     public GIOStatus readLine(char** strReturn, uint* length, uint* terminatorPos) 
    442     { 
    443         // GIOStatus g_io_channel_read_line (GIOChannel *channel,  gchar **str_return,  gsize *length,  gsize *terminator_pos,  GError **error); 
    444         GError* err = null; 
    445          
    446         auto p = g_io_channel_read_line(gIOChannel, strReturn, length, terminatorPos, &err); 
    447          
    448         if (err !is null) 
    449         { 
    450             throw new GException( new ErrorG(err) ); 
    451         } 
    452          
    453         return p; 
    454     } 
    455      
    456     /** 
    457429     * Reads a line from a GIOChannel, using a GString as a buffer. 
    458430     * Params: 
     
    470442         
    471443        auto p = g_io_channel_read_line_string(gIOChannel, (buffer is null) ? null : buffer.getStringGStruct(), &terminatorPos, &err); 
    472          
    473         if (err !is null) 
    474         { 
    475             throw new GException( new ErrorG(err) ); 
    476         } 
    477          
    478         return p; 
    479     } 
    480      
    481     /** 
    482      * Reads all the remaining data from the file. 
    483      * Params: 
    484      * strReturn =  Location to store a pointer to a string holding 
    485      *  the remaining data in the GIOChannel. This data should 
    486      *  be freed with g_free() when no longer needed. This 
    487      *  data is terminated by an extra nul character, but there 
    488      *  may be other nuls in the intervening data. 
    489      * length =  location to store length of the data 
    490      * Returns: G_IO_STATUS_NORMAL on success.  This function never returns G_IO_STATUS_EOF. 
    491      * Throws: GException on failure. 
    492      */ 
    493     public GIOStatus readToEnd(char** strReturn, uint* length) 
    494     { 
    495         // GIOStatus g_io_channel_read_to_end (GIOChannel *channel,  gchar **str_return,  gsize *length,  GError **error); 
    496         GError* err = null; 
    497          
    498         auto p = g_io_channel_read_to_end(gIOChannel, strReturn, length, &err); 
    499444         
    500445        if (err !is null) 
  • trunk/src/glib/KeyFile.d

    r575 r576  
    4141 * omit prefixes: 
    4242 * omit code: 
     43 *  - g_key_file_load_from_dirs 
    4344 * omit signals: 
    4445 * imports: 
     
    322323     
    323324    /** 
    324      * This function looks for a key file named file in the paths 
    325      * specified in search_dirs, loads the file into key_file and 
    326      * returns the file's full path in full_path. If the file could not 
    327      * be loaded then an error is set to either a GFileError or 
    328      * GKeyFileError. 
    329      * Since 2.14 
    330      * Params: 
    331      * file =  a relative path to a filename to open and parse 
    332      * searchDirs =  NULL-terminated array of directories to search 
    333      * fullPath =  return location for a string containing the full path 
    334      *  of the file, or NULL 
    335      * flags =  flags from GKeyFileFlags 
    336      * Returns: TRUE if a key file could be loaded, FALSE otherwise 
    337      * Throws: GException on failure. 
    338      */ 
    339     public int loadFromDirs(string file, char** searchDirs, char** fullPath, GKeyFileFlags flags) 
    340     { 
    341         // gboolean g_key_file_load_from_dirs (GKeyFile *key_file,  const gchar *file,  const gchar **search_dirs,  gchar **full_path,  GKeyFileFlags flags,  GError **error); 
    342         GError* err = null; 
    343          
    344         auto p = g_key_file_load_from_dirs(gKeyFile, Str.toStringz(file), searchDirs, fullPath, flags, &err); 
    345          
    346         if (err !is null) 
    347         { 
    348             throw new GException( new ErrorG(err) ); 
    349         } 
    350          
    351         return p; 
    352     } 
    353      
    354     /** 
    355325     * This function outputs key_file as a string. 
    356326     * Since 2.6 
  • trunk/src/glib/RandG.d

    r575 r576  
    4343 * omit code: 
    4444 *  - g_rand_new_with_seed_array 
     45 *  - g_rand_set_seed_array 
    4546 * omit signals: 
    4647 * imports: 
     
    241242     
    242243    /** 
    243      * Initializes the random number generator by an array of 
    244      * longs. Array can be of arbitrary size, though only the 
    245      * first 624 values are taken. This function is useful 
    246      * if you have many low entropy seeds, or if you require more then 
    247      * 32bits of actual entropy for your application. 
    248      * Since 2.4 
    249      * Params: 
    250      * seed =  array to initialize with 
    251      * seedLength =  length of array 
    252      */ 
    253     public void setSeedArray(uint* seed, uint seedLength) 
    254     { 
    255         // void g_rand_set_seed_array (GRand *rand_,  const guint32 *seed,  guint seed_length); 
    256         g_rand_set_seed_array(gRand, seed, seedLength); 
    257     } 
    258      
    259     /** 
    260244     * Returns the next random guint32 from rand_ equally distributed over 
    261245     * the range [0..2^32-1]. 
  • trunk/wrap/APILookupGLib.txt

    r575 r576  
    577577out: g_io_channel_write bytes_written 
    578578 
     579nocode: g_io_channel_read_line 
     580nocode: g_io_channel_read_to_end 
     581 
    579582code: start 
    580583/** 
     
    11061109 
    11071110nocode: g_rand_new_with_seed_array 
     1111nocode: g_rand_set_seed_array 
    11081112 
    11091113code: start 
     
    18401844out: g_key_file_get_double_list length 
    18411845 
     1846nocode: g_key_file_load_from_dirs 
     1847 
    18421848code: start 
    18431849    /** 
     
    18941900out: g_bookmark_file_get_app_info count 
    18951901out: g_bookmark_file_get_app_info stamp 
     1902 
     1903nocode: g_bookmark_file_set_groups 
    18961904 
    18971905code: start