equal
deleted
inserted
replaced
1512 LmConnection *connection; |
1512 LmConnection *connection; |
1513 |
1513 |
1514 connection = lm_connection_new (server); |
1514 connection = lm_connection_new (server); |
1515 connection->context = context; |
1515 connection->context = context; |
1516 |
1516 |
1517 g_main_context_ref (connection->context); |
1517 if (context) { |
|
1518 g_main_context_ref (connection->context); |
|
1519 } |
1518 |
1520 |
1519 return connection; |
1521 return connection; |
1520 } |
1522 } |
1521 |
1523 |
1522 /** |
1524 /** |
2321 lm_connection_send_raw (LmConnection *connection, |
2323 lm_connection_send_raw (LmConnection *connection, |
2322 const gchar *str, |
2324 const gchar *str, |
2323 GError **error) |
2325 GError **error) |
2324 { |
2326 { |
2325 g_return_val_if_fail (connection != NULL, FALSE); |
2327 g_return_val_if_fail (connection != NULL, FALSE); |
|
2328 g_return_val_if_fail (str != NULL, FALSE); |
2326 |
2329 |
2327 return connection_send (connection, str, -1, error); |
2330 return connection_send (connection, str, -1, error); |
2328 } |
2331 } |
2329 /** |
2332 /** |
2330 * lm_connection_get_state: |
2333 * lm_connection_get_state: |