home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / man / cat3 / xrmcombinefiledatabase.0 < prev    next >
Encoding:
Text File  |  1996-10-17  |  3.6 KB  |  133 lines

  1.  
  2.  
  3.  
  4. XrmMergeDatabases(3X11)      XLIB FUNCTIONS  XrmMergeDatabases(3X11)
  5.  
  6.  
  7. NNAAMMEE
  8.        XrmMergeDatabases, XrmCombineDatabase, XrmCombineFile-
  9.        Database - merge resource databases
  10.  
  11. SSYYNNTTAAXX
  12.        void XrmMergeDatabases(_s_o_u_r_c_e___d_b, _t_a_r_g_e_t___d_b)
  13.          XrmDatabase _s_o_u_r_c_e___d_b, *_t_a_r_g_e_t___d_b;
  14.  
  15.        void XrmCombineDatabase(_s_o_u_r_c_e___d_b, _t_a_r_g_e_t___d_b, _o_v_e_r_r_i_d_e)
  16.          XrmDatabase _s_o_u_r_c_e___d_b, *_t_a_r_g_e_t___d_b;
  17.          Bool _o_v_e_r_r_i_d_e;
  18.  
  19.        Status XrmCombineFileDatabase(_f_i_l_e_n_a_m_e, _t_a_r_g_e_t___d_b,
  20.        _o_v_e_r_r_i_d_e)
  21.          char *_f_i_l_e_n_a_m_e;
  22.          XrmDatabase *_t_a_r_g_e_t___d_b;
  23.          Bool _o_v_e_r_r_i_d_e;
  24.  
  25. AARRGGUUMMEENNTTSS
  26.        _s_o_u_r_c_e___d_b Specifies the resource database that is to be
  27.          merged into the target database.
  28.  
  29.        _t_a_r_g_e_t___d_b Specifies the resource database into which the
  30.          source database is to be merged.
  31.  
  32.        _f_i_l_e_n_a_m_e     Specifies the resource database file name.
  33.  
  34.        _o_v_e_r_r_i_d_e     Specifies whether source entries override target
  35.          ones.
  36.  
  37. DDEESSCCRRIIPPTTIIOONN
  38.        Calling the _X_r_m_M_e_r_g_e_D_a_t_a_b_a_s_e_s function is equivalent to
  39.        calling the _X_r_m_C_o_m_b_i_n_e_D_a_t_a_b_a_s_e function with an override
  40.        argument of _T_r_u_e.
  41.  
  42.        The _X_r_m_C_o_m_b_i_n_e_D_a_t_a_b_a_s_e function merges the contents of one
  43.        database into another.  If the same specifier is used for
  44.        an entry in both databases, the entry in the source_db
  45.        will replace the entry in the target_db if override is
  46.        _T_r_u_e; otherwise, the entry in source_db is discarded.  If
  47.        target_db contains NULL, _X_r_m_C_o_m_b_i_n_e_D_a_t_a_b_a_s_e simply stores
  48.        source_db in it.     Otherwise, source_db is destroyed by the
  49.        merge, but the database pointed to by target_db is not
  50.        destroyed.  The database entries are merged without chang-
  51.        ing values or types, regardless of the locales of the
  52.        databases.  The locale of the target database is not modi-
  53.        fied.
  54.  
  55.        The _X_r_m_C_o_m_b_i_n_e_F_i_l_e_D_a_t_a_b_a_s_e function merges the contents of
  56.        a resource file into a database.     If the same specifier is
  57.        used for an entry in both the file and the database, the
  58.        entry in the file will replace the entry in the database
  59.        if override is _T_r_u_e; otherwise, the entry in the file is
  60.        discarded.  The file is parsed in the current locale.  If
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XrmMergeDatabases(3X11)      XLIB FUNCTIONS  XrmMergeDatabases(3X11)
  71.  
  72.  
  73.        the file cannot be read, a zero status is returned; other-
  74.        wise, a nonzero status is returned.  If target_db contains
  75.        NULL, _X_r_m_C_o_m_b_i_n_e_F_i_l_e_D_a_t_a_b_a_s_e creates and returns a new
  76.        database to it.    Otherwise, the database pointed to by
  77.        target_db is not destroyed by the merge.     The database
  78.        entries are merged without changing values or types,
  79.        regardless of the locale of the database.  The locale of
  80.        the target database is not modified.
  81.  
  82. SSEEEE AALLSSOO
  83.        XrmGetResource(3X11), XrmInitialize(3X11), XrmPutRe-
  84.        source(3X11)
  85.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. X Version 11           Release 6.1                2
  131.  
  132.  
  133.